From 49b07dccadd47a8eab6add761bcf7e57726eb5fe Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 20 Jul 2012 12:49:06 +0000 Subject: - partial change, broken build system on laptop --- src/include/gnunet_mesh_service.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/include/gnunet_mesh_service.h') diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index 11bf246b4..e1cd03005 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h @@ -226,6 +226,10 @@ typedef void (*GNUNET_MESH_PeerConnectHandler) (void *cls, /** * Announce to ther peer the availability of services described by the regex, * in order to be reachable to other peers via connect_by_string. + * + * Note that the first 8 characters are considered to be part of a prefix, + * (for instance 'gnunet://'). If you put a variable part in there (*, +. ()), + * all matching strings will be stored in the DHT. * * @param h handle to mesh. * @param regex string with the regular expression describing local services. @@ -261,6 +265,26 @@ void GNUNET_MESH_tunnel_destroy (struct GNUNET_MESH_Tunnel *tunnel); +/** + * Request that the tunnel data rate is limited to the speed of the slowest + * receiver. + * + * @param tunnel Tunnel affected. + */ +void +GNUNET_MESH_tunnel_speed_min (struct GNUNET_MESH_Tunnel *tunnel); + + +/** + * Request that the tunnel data rate is limited to the speed of the fastest + * receiver. This is the default behavior. + * + * @param tunnel Tunnel affected. + */ +void +GNUNET_MESH_tunnel_speed_max (struct GNUNET_MESH_Tunnel *tunnel); + + /** * Request that a peer should be added to the tunnel. The connect handler * will be called when the peer connects -- cgit v1.2.3