aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-02-05 12:45:13 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-02-05 12:45:13 +0000
commit8243cbe3c8649d478ac5262c5e13a69fdddba45c (patch)
treefa2e023cda3dd546c2f34da9a9f2214786d1a111 /src/transport/gnunet-service-transport.h
parent5741b675d753f5701375df35c26939dc019fc710 (diff)
downloadgnunet-8243cbe3c8649d478ac5262c5e13a69fdddba45c.tar.gz
gnunet-8243cbe3c8649d478ac5262c5e13a69fdddba45c.zip
more metric
Diffstat (limited to 'src/transport/gnunet-service-transport.h')
-rw-r--r--src/transport/gnunet-service-transport.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h
index adc28ba6d..abc473e21 100644
--- a/src/transport/gnunet-service-transport.h
+++ b/src/transport/gnunet-service-transport.h
@@ -67,6 +67,37 @@ extern struct GNUNET_CRYPTO_RsaPrivateKey *GST_my_private_key;
67 */ 67 */
68extern struct GNUNET_ATS_SchedulingHandle *GST_ats; 68extern struct GNUNET_ATS_SchedulingHandle *GST_ats;
69 69
70/**
71 * Function called by the transport for each received message.
72 * This function should also be called with "NULL" for the
73 * message to signal that the other peer disconnected.
74 *
75 * @param cls closure, const char* with the name of the plugin we received the message from
76 * @param peer (claimed) identity of the other peer
77 * @param message the message, NULL if we only care about
78 * learning about the delay until we should receive again -- FIXME!
79 * @param ats performance information
80 * @param ats_count number of records in ats
81 * @param session identifier used for this session (NULL for plugins
82 * that do not offer bi-directional communication to the sender
83 * using the same "connection")
84 * @param sender_address binary address of the sender (if we established the
85 * connection or are otherwise sure of it; should be NULL
86 * for inbound TCP/UDP connections since it it not clear
87 * that we could establish ourselves a connection to that
88 * IP address and get the same system)
89 * @param sender_address_len number of bytes in sender_address
90 * @return how long the plugin should wait until receiving more data
91 * (plugins that do not support this, can ignore the return value)
92 */
93struct GNUNET_TIME_Relative
94GST_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
95 const struct GNUNET_MessageHeader *message,
96 const struct GNUNET_ATS_Information *ats,
97 uint32_t ats_count, struct Session *session,
98 const char *sender_address,
99 uint16_t sender_address_len);
100
70 101
71#endif 102#endif
72/* end of file gnunet-service-transport_plugins.h */ 103/* end of file gnunet-service-transport_plugins.h */