aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mesh2_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_mesh2_service.h')
-rw-r--r--src/include/gnunet_mesh2_service.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/include/gnunet_mesh2_service.h b/src/include/gnunet_mesh2_service.h
index c69ac2bfd..b6593cf99 100644
--- a/src/include/gnunet_mesh2_service.h
+++ b/src/include/gnunet_mesh2_service.h
@@ -162,7 +162,8 @@ typedef void (GNUNET_MESH_TunnelEndHandler) (void *cls,
162 * the tunnel. 162 * the tunnel.
163 * @param handlers Callbacks for messages we care about, NULL-terminated. Each 163 * @param handlers Callbacks for messages we care about, NULL-terminated. Each
164 * one must call GNUNET_MESH_receive_done on the tunnel to 164 * one must call GNUNET_MESH_receive_done on the tunnel to
165 * receive the next message. 165 * receive the next message. Messages of a type that is not
166 * in the handlers array are ignored if received.
166 * @param ports NULL or 0-terminated array of port numbers for incoming tunnels. 167 * @param ports NULL or 0-terminated array of port numbers for incoming tunnels.
167 * 168 *
168 * @return handle to the mesh service NULL on error 169 * @return handle to the mesh service NULL on error
@@ -325,7 +326,7 @@ typedef void (*GNUNET_MESH_TunnelCB) (void *cls,
325/** 326/**
326 * Request information about the running mesh peer. 327 * Request information about the running mesh peer.
327 * The callback will be called for every tunnel known to the service, 328 * The callback will be called for every tunnel known to the service,
328 * listing all active peers that blong to the tunnel. 329 * listing all active peers that belong to the tunnel.
329 * 330 *
330 * If called again on the same handle, it will overwrite the previous 331 * If called again on the same handle, it will overwrite the previous
331 * callback and cls. To retrieve the cls, monitor_cancel must be 332 * callback and cls. To retrieve the cls, monitor_cancel must be
@@ -375,6 +376,18 @@ void *
375GNUNET_MESH_get_tunnels_cancel (struct GNUNET_MESH_Handle *h); 376GNUNET_MESH_get_tunnels_cancel (struct GNUNET_MESH_Handle *h);
376 377
377 378
379/**
380 * Create a message queue for a mesh tunnel.
381 * The message queue can only be used to transmit messages,
382 * not to receive them.
383 *
384 * @param tunnel the tunnel to create the message qeue for
385 * @return a message queue to messages over the tunnel
386 */
387struct GNUNET_MQ_Handle *
388GNUNET_MESH_mq_create (struct GNUNET_MESH_Tunnel *tunnel);
389
390
378#if 0 /* keep Emacsens' auto-indent happy */ 391#if 0 /* keep Emacsens' auto-indent happy */
379{ 392{
380#endif 393#endif