diff options
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r-- | src/include/gnunet_mesh_service.h | 24 |
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 | */ | ||
274 | void | ||
275 | GNUNET_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 | */ | ||
284 | void | ||
285 | GNUNET_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 | * |