aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-28 15:43:30 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-28 15:43:30 +0000
commit363b7a14f9e07ddbdbf7d3b6e6243b276693222e (patch)
treebc779bb85411555059b8217b741f2e6b880fdec1 /src/transport/gnunet-service-transport_neighbours.h
parent3a70e67854d7696dfb0de49c7bbd19ab82b42348 (diff)
downloadgnunet-363b7a14f9e07ddbdbf7d3b6e6243b276693222e.tar.gz
gnunet-363b7a14f9e07ddbdbf7d3b6e6243b276693222e.zip
moving files from dev to final location
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h33
1 files changed, 5 insertions, 28 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index 272f059dd..3868ef2cf 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -199,7 +199,9 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
199 * @param address_len number of bytes in address 199 * @param address_len number of bytes in address
200 * @param session session to use (or NULL) 200 * @param session session to use (or NULL)
201 * @param ats performance data 201 * @param ats performance data
202 * @param ats_count number of entries in ats (excluding 0-termination) 202 * @param ats_count number of entries in ats
203 * @param bandwidth_in inbound quota to be used when connection is up
204 * @param bandwidth_out outbound quota to be used when connection is up
203 * @return GNUNET_YES if we are currently connected, GNUNET_NO if the 205 * @return GNUNET_YES if we are currently connected, GNUNET_NO if the
204 * connection is not up (yet) 206 * connection is not up (yet)
205 */ 207 */
@@ -219,6 +221,7 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer,
219 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, 221 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
220 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); 222 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out);
221 223
224
222/** 225/**
223 * We received a 'SESSION_CONNECT' message from the other peer. 226 * We received a 'SESSION_CONNECT' message from the other peer.
224 * Consider switching to it. 227 * Consider switching to it.
@@ -231,7 +234,7 @@ GST_neighbours_switch_to_address_3way (const struct GNUNET_PeerIdentity *peer,
231 * @param address_len number of bytes in address 234 * @param address_len number of bytes in address
232 * @param session session to use (or NULL) 235 * @param session session to use (or NULL)
233 * @param ats performance data 236 * @param ats performance data
234 * @param ats_count number of entries in ats 237 * @param ats_count number of entries in ats (excluding 0-termination)
235 */ 238 */
236void 239void
237GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message, 240GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
@@ -242,19 +245,6 @@ GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message,
242 const struct GNUNET_ATS_Information *ats, 245 const struct GNUNET_ATS_Information *ats,
243 uint32_t ats_count); 246 uint32_t ats_count);
244 247
245/**
246 * We received a 'SESSION_CONNECT_ACK' message from the other peer.
247 *
248 * @param message possibly a 'struct SessionConnectMessage' (check format)
249 * @param peer identity of the peer to switch the address for
250 * @param plugin_name name of transport that delivered the PONG
251 * @param address address of the other peer, NULL if other peer
252 * connected to us
253 * @param address_len number of bytes in address
254 * @param session session to use (or NULL)
255 * @param ats performance data
256 * @param ats_count number of entries in ats
257 */
258void 248void
259GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message, 249GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
260 const struct GNUNET_PeerIdentity *peer, 250 const struct GNUNET_PeerIdentity *peer,
@@ -264,19 +254,6 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
264 const struct GNUNET_ATS_Information *ats, 254 const struct GNUNET_ATS_Information *ats,
265 uint32_t ats_count); 255 uint32_t ats_count);
266 256
267/**
268 * We received a 'SESSION_ACK' message from the other peer.
269 *
270 * @param message possibly a 'struct SessionConnectMessage' (check format)
271 * @param peer identity of the peer to switch the address for
272 * @param plugin_name name of transport that delivered the PONG
273 * @param address address of the other peer, NULL if other peer
274 * connected to us
275 * @param address_len number of bytes in address
276 * @param session session to use (or NULL)
277 * @param ats performance data
278 * @param ats_count number of entries in ats
279 */
280void 257void
281GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message, 258GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message,
282 const struct GNUNET_PeerIdentity *peer, 259 const struct GNUNET_PeerIdentity *peer,