aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_connection.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-10 16:12:29 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-10 16:12:29 +0000
commiteb003715aa2ef218876bb67cb3e204d9302a6db7 (patch)
treeee3feb27b5469b3548a09d6b6dc8411498021493 /src/mesh/gnunet-service-mesh_connection.h
parent0f50b74b830b74d16ba4ceded679dbe8cf206c5c (diff)
downloadgnunet-eb003715aa2ef218876bb67cb3e204d9302a6db7.tar.gz
gnunet-eb003715aa2ef218876bb67cb3e204d9302a6db7.zip
- add polling API to connection
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.h')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.h b/src/mesh/gnunet-service-mesh_connection.h
index 436ae01c7..131bd9dc2 100644
--- a/src/mesh/gnunet-service-mesh_connection.h
+++ b/src/mesh/gnunet-service-mesh_connection.h
@@ -417,6 +417,31 @@ GMC_send_create (struct MeshConnection *connection);
417void 417void
418GMC_send_destroy (struct MeshConnection *c); 418GMC_send_destroy (struct MeshConnection *c);
419 419
420/**
421 * @brief Start a polling timer for the connection.
422 *
423 * When a neighbor does not accept more traffic on the connection it could be
424 * caused by a simple congestion or by a lost ACK. Polling enables to check
425 * for the lastest ACK status for a connection.
426 *
427 * @param c Connection.
428 * @param fwd Should we poll in the FWD direction?
429 */
430void
431GMC_start_poll (struct MeshConnection *c, int fwd);
432
433
434/**
435 * @brief Stop polling a connection for ACKs.
436 *
437 * Once we have enough ACKs for future traffic, polls are no longer necessary.
438 *
439 * @param c Connection.
440 * @param fwd Should we stop the poll in the FWD direction?
441 */
442void
443GMC_stop_poll (struct MeshConnection *c, int fwd);
444
420#if 0 /* keep Emacsens' auto-indent happy */ 445#if 0 /* keep Emacsens' auto-indent happy */
421{ 446{
422#endif 447#endif