From 84a5c321a6426ee928bfe8dda032896ec0713274 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 14 Jun 2012 15:21:42 +0000 Subject: [PATCH] - clarify doxygen --- src/include/gnunet_mesh_service.h | 2 +- src/mesh/mesh_api.c | 39 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index fc5985efd..39a979319 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h @@ -224,7 +224,7 @@ typedef void (*GNUNET_MESH_PeerConnectHandler) (void *cls, /** - * Store the given regex (describing offered local services) in the DHT, + * Announce to ther peer the availability of services described by the regex, * in order to be reachable to other peers via connect_by_string. * * @param h handle to mesh. diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index a7b8e77de..a2b1d67da 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1566,6 +1566,45 @@ GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel *tunnel, } +/** + * Request that the mesh should try to connect to a peer matching the + * description given in the service string. + * + * @param tunnel handle to existing tunnel + * @param description string describing the destination node requirements + */ +void +GNUNET_MESH_peer_request_connect_by_string (struct GNUNET_MESH_Tunnel *tunnel, + const char *description); + + +/** + * Request that the given peer isn't added to this tunnel in calls to + * connect_by_* calls, (due to misbehaviour, bad performance, ...). + * + * @param tunnel handle to existing tunnel. + * @param peer peer identity of the peer which should be blacklisted + * for the tunnel. + */ +void +GNUNET_MESH_peer_blacklist (struct GNUNET_MESH_Tunnel *tunnel, + const struct GNUNET_PeerIdentity *peer); + + +/** + * Request that the given peer isn't blacklisted anymore from this tunnel, + * and therefore can be added in future calls to connect_by_*. + * The peer must have been previously blacklisted for this tunnel. + * + * @param tunnel handle to existing tunnel. + * @param peer peer identity of the peer which shouldn't be blacklisted + * for the tunnel anymore. + */ +void +GNUNET_MESH_peer_unblacklist (struct GNUNET_MESH_Tunnel *tunnel, + const struct GNUNET_PeerIdentity *peer); + + /** * Ask the mesh to call "notify" once it is ready to transmit the * given number of bytes to the specified "target". If we are not yet -- 2.25.1