aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-09 14:19:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-09 14:19:19 +0000
commit403463fce31bfcdb8f55673a3c68b337126a73a8 (patch)
tree4523e67c7ec8a9544325fe5757a20cbf08851c66 /src/include/gnunet_transport_plugin.h
parent6b0a149769a7196d687d91020eb0c83c7abd14c1 (diff)
downloadgnunet-403463fce31bfcdb8f55673a3c68b337126a73a8.tar.gz
gnunet-403463fce31bfcdb8f55673a3c68b337126a73a8.zip
missing file
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index eb2cf300a..603b6ee4f 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -78,6 +78,31 @@ typedef void (*GNUNET_TRANSPORT_SessionEnd) (void *cls,
78 78
79 79
80/** 80/**
81 * Function that will be called whenever the plugin internally
82 * creates a new session and hence transport need to tell ATS.
83 * This happens when we have a inbound connection we did not
84 * initiate.
85 *
86 * @param cls closure
87 * @param peer peer
88 * @param plugin plugin
89 * @param address address
90 * @param address_len length of the address
91 * @param session session
92 * @param ats ATS information
93 * @param ats_count number of ATS information contained
94 */
95typedef void
96(*GNUNET_TRANSPORT_SessionStart) (void *cls,
97 const struct GNUNET_PeerIdentity *peer,
98 const char *plugin,
99 const void *address,
100 uint16_t address_len,
101 struct Session *session,
102 const struct GNUNET_ATS_Information *ats,
103 uint32_t ats_count);
104
105/**
81 * Function called by the transport for each received message. 106 * Function called by the transport for each received message.
82 * This function should also be called with "NULL" for the 107 * This function should also be called with "NULL" for the
83 * message to signal that the other peer disconnected. 108 * message to signal that the other peer disconnected.
@@ -249,6 +274,12 @@ struct GNUNET_TRANSPORT_PluginEnvironment
249 GNUNET_TRANSPORT_SessionEnd session_end; 274 GNUNET_TRANSPORT_SessionEnd session_end;
250 275
251 /** 276 /**
277 * Function called by the plugin when a new (incoming) session was created
278 * not explicitly created using the the get_session function
279 */
280 GNUNET_TRANSPORT_SessionStart session_start;
281
282 /**
252 * Function that will be called to figure if an address is an loopback, 283 * Function that will be called to figure if an address is an loopback,
253 * LAN, WAN etc. address 284 * LAN, WAN etc. address
254 */ 285 */