diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.h | 33 |
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 | */ |
236 | void | 239 | void |
237 | GST_neighbours_handle_connect (const struct GNUNET_MessageHeader *message, | 240 | GST_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 | */ | ||
258 | void | 248 | void |
259 | GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message, | 249 | GST_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 | */ | ||
280 | void | 257 | void |
281 | GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message, | 258 | GST_neighbours_handle_ack (const struct GNUNET_MessageHeader *message, |
282 | const struct GNUNET_PeerIdentity *peer, | 259 | const struct GNUNET_PeerIdentity *peer, |