diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-25 07:07:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-25 07:07:07 +0000 |
commit | 13449cc7f242597cdff4655161fbce3a340dbd24 (patch) | |
tree | eac36b2e53fb3fb2099d43f387881f4a8c97fe94 /src/mesh | |
parent | 9ac04ef77cad3ef262fb9f9d7e27e8c0a6acd2b9 (diff) | |
download | gnunet-13449cc7f242597cdff4655161fbce3a340dbd24.tar.gz gnunet-13449cc7f242597cdff4655161fbce3a340dbd24.zip |
make compile
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_api.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 053449fbe..a8833bb75 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -421,6 +421,28 @@ core_notify(void* cls, size_t size, void* buf) | |||
421 | return sent; | 421 | return sent; |
422 | } | 422 | } |
423 | 423 | ||
424 | |||
425 | /** | ||
426 | * Ask the mesh to call "notify" once it is ready to transmit the | ||
427 | * given number of bytes to the specified "target". If we are not yet | ||
428 | * connected to the specified peer, a call to this function will cause | ||
429 | * us to try to establish a connection. | ||
430 | * | ||
431 | * @param tunnel tunnel to use for transmission | ||
432 | * @param cork is corking allowed for this transmission? | ||
433 | * @param priority how important is the message? | ||
434 | * @param maxdelay how long can the message wait? | ||
435 | * @param target destination for the message, NULL for multicast to all tunnel targets | ||
436 | * @param notify_size how many bytes of buffer space does notify want? | ||
437 | * @param notify function to call when buffer space is available; | ||
438 | * will be called with NULL on timeout or if the overall queue | ||
439 | * for this peer is larger than queue_size and this is currently | ||
440 | * the message with the lowest priority | ||
441 | * @param notify_cls closure for notify | ||
442 | * @return non-NULL if the notify callback was queued, | ||
443 | * NULL if we can not even queue the request (insufficient | ||
444 | * memory); if NULL is returned, "notify" will NOT be called. | ||
445 | */ | ||
424 | struct GNUNET_MESH_TransmitHandle * | 446 | struct GNUNET_MESH_TransmitHandle * |
425 | GNUNET_MESH_notify_transmit_ready (struct | 447 | GNUNET_MESH_notify_transmit_ready (struct |
426 | GNUNET_MESH_Tunnel | 448 | GNUNET_MESH_Tunnel |
@@ -430,6 +452,7 @@ GNUNET_MESH_notify_transmit_ready (struct | |||
430 | struct | 452 | struct |
431 | GNUNET_TIME_Relative | 453 | GNUNET_TIME_Relative |
432 | maxdelay, | 454 | maxdelay, |
455 | const struct GNUNET_PeerIdentity *target, | ||
433 | size_t | 456 | size_t |
434 | notify_size, | 457 | notify_size, |
435 | GNUNET_CONNECTION_TransmitReadyNotify | 458 | GNUNET_CONNECTION_TransmitReadyNotify |