aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h68
1 files changed, 36 insertions, 32 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index 3868ef2cf..3aafc3d55 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -159,11 +159,9 @@ GST_neighbours_force_disconnect (const struct GNUNET_PeerIdentity *target);
159typedef void (*GST_NeighbourIterator) (void *cls, 159typedef void (*GST_NeighbourIterator) (void *cls,
160 const struct GNUNET_PeerIdentity * 160 const struct GNUNET_PeerIdentity *
161 neighbour, 161 neighbour,
162 const struct 162 const struct GNUNET_ATS_Information *
163 GNUNET_ATS_Information * ats, 163 ats, uint32_t ats_count,
164 uint32_t ats_count, 164 const char *transport, const void *addr,
165 const char * transport,
166 const void * addr,
167 size_t addrlen); 165 size_t addrlen);
168 166
169 167
@@ -209,17 +207,20 @@ int
209GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer, 207GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
210 const char *plugin_name, const void *address, 208 const char *plugin_name, const void *address,
211 size_t address_len, struct Session *session, 209 size_t address_len, struct Session *session,
212 const struct GNUNET_ATS_Information 210 const struct GNUNET_ATS_Information *ats,
213 *ats, uint32_t ats_count); 211 uint32_t ats_count);
214 212
215int 213int
216GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer, 214GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer,
217 const char *plugin_name, const void *address, 215 const char *plugin_name,
218 size_t address_len, struct Session *session, 216 const void *address, size_t address_len,
219 const struct GNUNET_ATS_Information 217 struct Session *session,
220 *ats, uint32_t ats_count, 218 const struct GNUNET_ATS_Information *ats,
221 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 219 uint32_t ats_count,
222 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); 220 struct GNUNET_BANDWIDTH_Value32NBO
221 bandwidth_in,
222 struct GNUNET_BANDWIDTH_Value32NBO
223 bandwidth_out);
223 224
224 225
225/** 226/**
@@ -238,41 +239,44 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer,
238 */ 239 */
239void 240void
240GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message, 241GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
241 const struct GNUNET_PeerIdentity *peer,
242 const char *plugin_name,
243 const char *sender_address, uint16_t sender_address_len,
244 struct Session *session,
245 const struct GNUNET_ATS_Information *ats,
246 uint32_t ats_count);
247
248void
249GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
250 const struct GNUNET_PeerIdentity *peer, 242 const struct GNUNET_PeerIdentity *peer,
251 const char *plugin_name, 243 const char *plugin_name,
252 const char *sender_address, uint16_t sender_address_len, 244 const char *sender_address,
245 uint16_t sender_address_len,
253 struct Session *session, 246 struct Session *session,
254 const struct GNUNET_ATS_Information *ats, 247 const struct GNUNET_ATS_Information *ats,
255 uint32_t ats_count); 248 uint32_t ats_count);
256 249
257void 250void
251GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
252 const struct GNUNET_PeerIdentity *peer,
253 const char *plugin_name,
254 const char *sender_address,
255 uint16_t sender_address_len,
256 struct Session *session,
257 const struct GNUNET_ATS_Information *ats,
258 uint32_t ats_count);
259
260void
258GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message, 261GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message,
259 const struct GNUNET_PeerIdentity *peer, 262 const struct GNUNET_PeerIdentity *peer,
260 const char *plugin_name, 263 const char *plugin_name, const char *sender_address,
261 const char *sender_address, uint16_t sender_address_len, 264 uint16_t sender_address_len, struct Session *session,
262 struct Session *session, 265 const struct GNUNET_ATS_Information *ats,
263 const struct GNUNET_ATS_Information *ats, 266 uint32_t ats_count);
264 uint32_t ats_count);
265 267
266/** 268/**
267 * We received a disconnect message from the given peer, 269 * We received a disconnect message from the given peer,
268 * validate and process. 270 * validate and process.
269 * 271 *
270 * @param peer sender of the message 272 * @param peer sender of the message
271 * @param msg the disconnect message 273 * @param msg the disconnect message
272 */ 274 */
273void 275void
274GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity *peer, 276GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity
275 const struct GNUNET_MessageHeader *msg); 277 *peer,
278 const struct GNUNET_MessageHeader
279 *msg);
276 280
277 281
278#endif 282#endif