[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31516 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31516 - gnunet/src/include |
Date: |
Wed, 18 Dec 2013 12:31:05 +0100 |
Author: wachs
Date: 2013-12-18 12:31:04 +0100 (Wed, 18 Dec 2013)
New Revision: 31516
Modified:
gnunet/src/include/gnunet_transport_plugin.h
Log:
new api function for timeouts
Modified: gnunet/src/include/gnunet_transport_plugin.h
===================================================================
--- gnunet/src/include/gnunet_transport_plugin.h 2013-12-18 10:31:31 UTC
(rev 31515)
+++ gnunet/src/include/gnunet_transport_plugin.h 2013-12-18 11:31:04 UTC
(rev 31516)
@@ -74,14 +74,13 @@
*
* @param cls closure
* @param peer which peer was the session for
- * @param session which session is being destoyed
+ * @param session which session is being destroyed
*/
typedef void
(*GNUNET_TRANSPORT_SessionEnd) (void *cls,
const struct GNUNET_PeerIdentity *peer,
struct Session *session);
-
/**
* Function that will be called whenever the plugin internally
* creates a new session and hence transport need to tell ATS.
@@ -107,7 +106,6 @@
const struct GNUNET_ATS_Information *ats,
uint32_t ats_count);
-
/**
* Function called by the transport for each received message.
* This function should also be called with "NULL" for the
@@ -490,6 +488,19 @@
(*GNUNET_TRANSPORT_CreateSession) (void *cls,
const struct GNUNET_HELLO_Address *address);
+/**
+ * Function that will be called whenever the transport service wants to
+ * notify the plugin that a session is still active and in use and
+ * therefore the session timeout for this session has to be updated
+ *
+ * @param cls closure
+ * @param peer which peer was the session for
+ * @param session which session is being updated
+ */
+typedef void
+(*GNUNET_TRANSPORT_UpdateSessionTimeout) (void *cls,
+ const struct GNUNET_PeerIdentity
*peer,
+ struct Session *session);
/**
* Function called for a quick conversion of the binary address to
@@ -576,6 +587,13 @@
GNUNET_TRANSPORT_DisconnectSessionFunction disconnect_session;
/**
+ * Function that will be called whenever the transport service wants to
+ * notify the plugin that a session is still active and in use and
+ * therefore the session timeout for this session has to be updated
+ */
+ GNUNET_TRANSPORT_UpdateSessionTimeout update_session_timeout;
+
+ /**
* Function that is used to query keepalive factor.
* GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT is divided by this number to
* calculate the interval between keepalive packets.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31516 - gnunet/src/include,
gnunet <=