[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27830 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27830 - gnunet/src/include |
Date: |
Tue, 9 Jul 2013 16:19:19 +0200 |
Author: wachs
Date: 2013-07-09 16:19:19 +0200 (Tue, 09 Jul 2013)
New Revision: 27830
Modified:
gnunet/src/include/gnunet_transport_plugin.h
Log:
missing file
Modified: gnunet/src/include/gnunet_transport_plugin.h
===================================================================
--- gnunet/src/include/gnunet_transport_plugin.h 2013-07-09 14:04:00 UTC
(rev 27829)
+++ gnunet/src/include/gnunet_transport_plugin.h 2013-07-09 14:19:19 UTC
(rev 27830)
@@ -78,6 +78,31 @@
/**
+ * Function that will be called whenever the plugin internally
+ * creates a new session and hence transport need to tell ATS.
+ * This happens when we have a inbound connection we did not
+ * initiate.
+ *
+ * @param cls closure
+ * @param peer peer
+ * @param plugin plugin
+ * @param address address
+ * @param address_len length of the address
+ * @param session session
+ * @param ats ATS information
+ * @param ats_count number of ATS information contained
+ */
+typedef void
+(*GNUNET_TRANSPORT_SessionStart) (void *cls,
+ const struct GNUNET_PeerIdentity
*peer,
+ const char *plugin,
+ const void *address,
+ uint16_t address_len,
+ struct Session *session,
+ 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
* message to signal that the other peer disconnected.
@@ -249,6 +274,12 @@
GNUNET_TRANSPORT_SessionEnd session_end;
/**
+ * Function called by the plugin when a new (incoming) session was created
+ * not explicitly created using the the get_session function
+ */
+ GNUNET_TRANSPORT_SessionStart session_start;
+
+ /**
* Function that will be called to figure if an address is an loopback,
* LAN, WAN etc. address
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27830 - gnunet/src/include,
gnunet <=