aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-06-19 09:25:37 +0000
committerBart Polot <bart@net.in.tum.de>2013-06-19 09:25:37 +0000
commit6bc985101e091c74b711b6e53d5bac41979d8bd7 (patch)
tree7d4c6d86dd3c13e7206e30354740cd6e8c6189e3 /src
parent326c174a6e247a2b16ff60b801187f1ce20ff593 (diff)
downloadgnunet-6bc985101e091c74b711b6e53d5bac41979d8bd7.tar.gz
gnunet-6bc985101e091c74b711b6e53d5bac41979d8bd7.zip
- document bug #2896: call end handler on requested tunnel destroy
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_mesh2_service.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/include/gnunet_mesh2_service.h b/src/include/gnunet_mesh2_service.h
index f12e377bc..18724fd38 100644
--- a/src/include/gnunet_mesh2_service.h
+++ b/src/include/gnunet_mesh2_service.h
@@ -135,10 +135,9 @@ typedef void *(GNUNET_MESH_InboundTunnelNotificationHandler) (void *cls,
135 135
136/** 136/**
137 * Function called whenever a tunnel is destroyed. Should clean up 137 * Function called whenever a tunnel is destroyed. Should clean up
138 * any associated state. This function is NOT called if the client has 138 * any associated state.
139 * explicitly asked for the tunnel to be destroyed using 139 *
140 * GNUNET_MESH_tunnel_destroy. It must NOT call GNUNET_MESH_tunnel_destroy on 140 * It must NOT call GNUNET_MESH_tunnel_destroy on the tunnel.
141 * the tunnel.
142 * 141 *
143 * @param cls closure (set from GNUNET_MESH_connect) 142 * @param cls closure (set from GNUNET_MESH_connect)
144 * @param tunnel connection to the other end (henceforth invalid) 143 * @param tunnel connection to the other end (henceforth invalid)
@@ -207,7 +206,7 @@ GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h,
207 206
208 207
209/** 208/**
210 * Destroy an existing tunnel. The existing callback for the tunnel will NOT 209 * Destroy an existing tunnel. The existing end callback for the tunnel will
211 * be called. 210 * be called.
212 * 211 *
213 * @param tunnel tunnel handle 212 * @param tunnel tunnel handle
@@ -282,6 +281,15 @@ GNUNET_MESH_receive_done (struct GNUNET_MESH_Tunnel *tunnel);
282 281
283 282
284 283
284/******************************************************************************/
285/******************** MONITORING /DEBUG API *************************/
286/******************************************************************************/
287/* The following calls are not useful for normal MESH operation, but for */
288/* debug and monitoring of the mesh state. They can be safely ignored. */
289/* The API can change at any point without notice. */
290/* Please contact the developer if you consider any of this calls useful for */
291/* normal mesh applications. */
292/******************************************************************************/
285 293
286/** 294/**
287 * Method called to retrieve information about each tunnel the mesh peer 295 * Method called to retrieve information about each tunnel the mesh peer