From d5389c393e9bafd5ed24544bdc7d2b86f488888c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 Jan 2012 15:37:33 +0000 Subject: [PATCH] -documentation related to #2069 --- src/include/gnunet_mesh_service.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index b9e95b46d..96e108239 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h @@ -186,6 +186,10 @@ GNUNET_MESH_disconnect (struct GNUNET_MESH_Handle *handle); /** * Method called whenever a peer has disconnected from the tunnel. + * Implementations of this callback must NOT call + * GNUNET_MESH_tunnel_destroy immediately, but instead schedule those + * to run in some other task later. However, calling + * "GNUNET_MESH_notify_transmit_ready_cancel" is allowed. * * @param cls closure * @param peer peer identity the tunnel stopped working with @@ -197,11 +201,12 @@ typedef void (*GNUNET_MESH_PeerDisconnectHandler) (void *cls, /** * Method called whenever a peer has connected to the tunnel. - * TODO: change to typedef int? to let client allow the new peer or not * * @param cls closure * @param peer peer identity the tunnel was created to, NULL on timeout * @param atsi performance data for the connection + * + * TODO: change to return int to let client allow the new peer or not? */ typedef void (*GNUNET_MESH_PeerConnectHandler) (void *cls, const struct GNUNET_PeerIdentity -- 2.25.1