aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-13 00:48:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-13 00:48:24 +0000
commit761e32ca4ffae07d145081c8273eb68fb505194b (patch)
tree3c078fcf219fdb38aad459d328e6dd370c5ddb01 /src/transport/gnunet-service-transport_neighbours.h
parent1524fd5835311f123d95e672dcae459630797fe0 (diff)
downloadgnunet-761e32ca4ffae07d145081c8273eb68fb505194b.tar.gz
gnunet-761e32ca4ffae07d145081c8273eb68fb505194b.zip
-major rewrite of gnunet-service-transport_neighbours state machine
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index 33fa1dac5..23091b750 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -127,6 +127,7 @@ GST_neighbours_calculate_receive_delay (const struct GNUNET_PeerIdentity
127void 127void
128GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour); 128GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour);
129 129
130
130/** 131/**
131 * We received a KEEP_ALIVE_RESPONSE message and use this to calculate latency 132 * We received a KEEP_ALIVE_RESPONSE message and use this to calculate latency
132 * to this peer 133 * to this peer
@@ -212,10 +213,8 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
212 * @param ats_count number of entries in ats 213 * @param ats_count number of entries in ats
213 * @param bandwidth_in inbound quota to be used when connection is up 214 * @param bandwidth_in inbound quota to be used when connection is up
214 * @param bandwidth_out outbound quota to be used when connection is up 215 * @param bandwidth_out outbound quota to be used when connection is up
215 * @return GNUNET_YES if we are currently connected, GNUNET_NO if the
216 * connection is not up (yet)
217 */ 216 */
218int 217void
219GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer, 218GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
220 const struct GNUNET_HELLO_Address 219 const struct GNUNET_HELLO_Address
221 *address, struct Session *session, 220 *address, struct Session *session,
@@ -266,13 +265,26 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
266 const struct GNUNET_ATS_Information *ats, 265 const struct GNUNET_ATS_Information *ats,
267 uint32_t ats_count); 266 uint32_t ats_count);
268 267
268
269/**
270 * We received a 'SESSION_ACK' message from the other peer.
271 * FIXME: describe what this means!
272 *
273 * @param message possibly a 'struct SessionConnectMessage' (check format)
274 * @param peer identity of the peer to switch the address for
275 * @param address address of the other peer, NULL if other peer
276 * connected to us
277 * @param session session to use (or NULL)
278 * @param ats performance data
279 * @param ats_count number of entries in ats
280 */
269void 281void
270GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message, 282GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
271 const struct GNUNET_PeerIdentity *peer, 283 const struct GNUNET_PeerIdentity *peer,
272 const struct GNUNET_HELLO_Address *address, 284 const struct GNUNET_HELLO_Address *address,
273 struct Session *session, 285 struct Session *session,
274 const struct GNUNET_ATS_Information *ats, 286 const struct GNUNET_ATS_Information *ats,
275 uint32_t ats_count); 287 uint32_t ats_count);
276 288
277 289
278/** 290/**