aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_mesh_service.h24
-rw-r--r--src/include/gnunet_protocols.h10
2 files changed, 34 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 *
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 9039d0f1b..652630bcc 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -846,6 +846,16 @@ extern "C"
846#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_UNBLACKLIST 281 846#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_UNBLACKLIST 281
847 847
848/** 848/**
849 * Set tunnel speed to slowest peer
850 */
851#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MIN 282
852
853/**
854 * Set tunnel speed to fastest peer
855 */
856#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX 283
857
858/**
849 * 640kb should be enough for everybody 859 * 640kb should be enough for everybody
850 */ 860 */
851#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288 861#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288