From 6d08e254a2fea8441acf354182ae8564d3d2dde0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 20 Jul 2012 16:57:42 +0000 Subject: [PATCH] - oops forgot includes --- src/include/gnunet_mesh_service.h | 11 ++++++++++ src/include/gnunet_protocols.h | 34 +++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index e1cd03005..c235bdd42 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h @@ -285,6 +285,17 @@ void GNUNET_MESH_tunnel_speed_max (struct GNUNET_MESH_Tunnel *tunnel); +/** + * Turn on/off the buffering status of the tunnel. + * + * @param tunnel Tunnel affected. + * @param buffer GNUNET_YES to turn buffering on (default), + * GNUNET_NO otherwise. + */ +void +GNUNET_MESH_tunnel_buffer (struct GNUNET_MESH_Tunnel *tunnel, int buffer); + + /** * Request that a peer should be added to the tunnel. The connect handler * will be called when the peer connects diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 652630bcc..dc29a4d02 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -791,9 +791,29 @@ extern "C" #define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY 266 /** - * We need flow control + * Set tunnel speed to slowest peer + */ +#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_MIN 267 + +/** + * Set tunnel speed to fastest peer + */ +#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_MAX 268 + +/** + * Set tunnel buffering on. + */ +#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_BUFFER 269 + +/** + * Set tunnel buffering off. */ -#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270 +#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_NOBUFFER 270 + +/** + * ACK for a data packet. + */ +#define GNUNET_MESSAGE_TYPE_MESH_ACK 271 /** * Connect to the mesh service, specifying subscriptions @@ -855,6 +875,16 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX 283 +/** + * Set tunnel buffering on. + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_BUFFER 284 + +/** + * Set tunnel buffering off. + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_NOBUFFER 285 + /** * 640kb should be enough for everybody */ -- 2.25.1