aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mesh_service.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-07-20 12:49:06 +0000
committerBart Polot <bart@net.in.tum.de>2012-07-20 12:49:06 +0000
commit49b07dccadd47a8eab6add761bcf7e57726eb5fe (patch)
tree673c87a53f857d1cb4684581f66516d32ab2c5f6 /src/include/gnunet_mesh_service.h
parent15f4d07a0a03d4c2358c92976cca4708fcca7ff4 (diff)
downloadgnunet-49b07dccadd47a8eab6add761bcf7e57726eb5fe.tar.gz
gnunet-49b07dccadd47a8eab6add761bcf7e57726eb5fe.zip
- partial change, broken build system on laptop
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r--src/include/gnunet_mesh_service.h24
1 files changed, 24 insertions, 0 deletions
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,
226/** 226/**
227 * Announce to ther peer the availability of services described by the regex, 227 * Announce to ther peer the availability of services described by the regex,
228 * in order to be reachable to other peers via connect_by_string. 228 * in order to be reachable to other peers via connect_by_string.
229 *
230 * Note that the first 8 characters are considered to be part of a prefix,
231 * (for instance 'gnunet://'). If you put a variable part in there (*, +. ()),
232 * all matching strings will be stored in the DHT.
229 * 233 *
230 * @param h handle to mesh. 234 * @param h handle to mesh.
231 * @param regex string with the regular expression describing local services. 235 * @param regex string with the regular expression describing local services.
@@ -262,6 +266,26 @@ GNUNET_MESH_tunnel_destroy (struct GNUNET_MESH_Tunnel *tunnel);
262 266
263 267
264/** 268/**
269 * Request that the tunnel data rate is limited to the speed of the slowest
270 * receiver.
271 *
272 * @param tunnel Tunnel affected.
273 */
274void
275GNUNET_MESH_tunnel_speed_min (struct GNUNET_MESH_Tunnel *tunnel);
276
277
278/**
279 * Request that the tunnel data rate is limited to the speed of the fastest
280 * receiver. This is the default behavior.
281 *
282 * @param tunnel Tunnel affected.
283 */
284void
285GNUNET_MESH_tunnel_speed_max (struct GNUNET_MESH_Tunnel *tunnel);
286
287
288/**
265 * Request that a peer should be added to the tunnel. The connect handler 289 * Request that a peer should be added to the tunnel. The connect handler
266 * will be called when the peer connects 290 * will be called when the peer connects
267 * 291 *