aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
commitf735158d94616b75ade351a3cce226483b8af55e (patch)
tree1cd9732b99cc6437fec7751b8f3c9ef28f0371c9 /src/transport/gnunet-service-transport.h
parentd769049a7db56037ea4aff3d9d8a8d42a373ec9c (diff)
downloadgnunet-f735158d94616b75ade351a3cce226483b8af55e.tar.gz
gnunet-f735158d94616b75ade351a3cce226483b8af55e.zip
-towards improved ATS API, adding return value with address record when adding address, adding new subsystem with peer-to-address map to transport; causes various new assertions to fail, but no major regression -- not finished
Diffstat (limited to 'src/transport/gnunet-service-transport.h')
-rw-r--r--src/transport/gnunet-service-transport.h43
1 files changed, 6 insertions, 37 deletions
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h
index 67456bd46..34b0083a2 100644
--- a/src/transport/gnunet-service-transport.h
+++ b/src/transport/gnunet-service-transport.h
@@ -28,6 +28,7 @@
28 28
29#include "gnunet_util_lib.h" 29#include "gnunet_util_lib.h"
30#include "gnunet_statistics_service.h" 30#include "gnunet_statistics_service.h"
31#include "gnunet_ats_service.h"
31#include "gnunet_transport_service.h" 32#include "gnunet_transport_service.h"
32 33
33#define VERBOSE_VALIDATION GNUNET_YES 34#define VERBOSE_VALIDATION GNUNET_YES
@@ -85,52 +86,20 @@ typedef void
85 * 86 *
86 * @param cls closure, const char* with the name of the plugin we received the message from 87 * @param cls closure, const char* with the name of the plugin we received the message from
87 * @param address address and (claimed) identity of the other peer 88 * @param address address and (claimed) identity of the other peer
88 * @param message the message, NULL if we only care about
89 * learning about the delay until we should receive again
90 * @param session identifier used for this session (NULL for plugins 89 * @param session identifier used for this session (NULL for plugins
91 * that do not offer bi-directional communication to the sender 90 * that do not offer bi-directional communication to the sender
92 * using the same "connection") 91 * using the same "connection")
92 * @param message the message, NULL if we only care about
93 * learning about the delay until we should receive again
93 * @return how long the plugin should wait until receiving more data 94 * @return how long the plugin should wait until receiving more data
94 * (plugins that do not support this, can ignore the return value) 95 * (plugins that do not support this, can ignore the return value)
95 */ 96 */
96struct GNUNET_TIME_Relative 97struct GNUNET_TIME_Relative
97GST_receive_callback (void *cls, 98GST_receive_callback (void *cls,
98 const struct GNUNET_HELLO_Address *address, 99 const struct GNUNET_HELLO_Address *address,
99 struct Session *session, 100 struct Session *session,
100 const struct GNUNET_MessageHeader *message); 101 const struct GNUNET_MessageHeader *message);
101
102
103/**
104 * Notify ATS about the new address including the network this address is
105 * located in.
106 *
107 * @param address the address
108 * @param session the session
109 * @param ats ats information
110 * @param ats_count number of @a ats information
111 */
112void
113GST_ats_add_address (const struct GNUNET_HELLO_Address *address,
114 struct Session *session,
115 const struct GNUNET_ATS_Information *ats,
116 uint32_t ats_count);
117
118 102
119/**
120 * Notify ATS about property changes to an address
121 *
122 * @param peer the peer
123 * @param address the address
124 * @param session the session
125 * @param ats performance information
126 * @param ats_count number of elements in @a ats
127 */
128void
129GST_ats_update_metrics (const struct GNUNET_PeerIdentity *peer,
130 const struct GNUNET_HELLO_Address *address,
131 struct Session *session,
132 const struct GNUNET_ATS_Information *ats,
133 uint32_t ats_count);
134 103
135#endif 104#endif
136/* end of file gnunet-service-transport_plugins.h */ 105/* end of file gnunet-service-transport_plugins.h */