aboutsummaryrefslogtreecommitdiff
path: root/src/regex/gnunet-regex-profiler.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-27 23:14:48 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-08-30 09:42:10 +0200
commita47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc (patch)
tree2c93bb0c3674cbeec5d3ab28328682459ca77cb8 /src/regex/gnunet-regex-profiler.c
parent8c6a68c258061f68466905393b76106436d3dccf (diff)
downloadgnunet-a47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc.tar.gz
gnunet-a47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc.zip
-DOC: Minor passes over NAT, REGEX, and TRANSPORT
Diffstat (limited to 'src/regex/gnunet-regex-profiler.c')
-rw-r--r--src/regex/gnunet-regex-profiler.c40
1 files changed, 9 insertions, 31 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index 75a1d2f99..721b77756 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -321,7 +321,9 @@ static struct GNUNET_TIME_Relative reannounce_period_max;
321/******************************************************************************/ 321/******************************************************************************/
322 322
323/** 323/**
324 * DHT connect callback. 324 * DHT connect callback. Called when we are connected to the dht service for
325 * the peer in 'cls'. If successful we connect to the stats service of this
326 * peer and then try to match the search string of this peer.
325 * 327 *
326 * @param cls internal peer id. 328 * @param cls internal peer id.
327 * @param op operation handle. 329 * @param op operation handle.
@@ -333,10 +335,10 @@ dht_connect_cb (void *cls, struct GNUNET_TESTBED_Operation *op,
333 void *ca_result, const char *emsg); 335 void *ca_result, const char *emsg);
334 336
335/** 337/**
336 * DHT connect adapter. 338 * DHT connect adapter. Opens a connection to the DHT service.
337 * 339 *
338 * @param cls not used. 340 * @param cls Closure (peer).
339 * @param cfg configuration handle. 341 * @param cfg Configuration handle.
340 * 342 *
341 * @return 343 * @return
342 */ 344 */
@@ -346,10 +348,10 @@ dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg);
346 348
347/** 349/**
348 * Adapter function called to destroy a connection to 350 * Adapter function called to destroy a connection to
349 * the DHT service 351 * the DHT service.
350 * 352 *
351 * @param cls closure 353 * @param cls Closure
352 * @param op_result service handle returned from the connect adapter 354 * @param op_result Service handle returned from the connect adapter.
353 */ 355 */
354static void 356static void
355dht_da (void *cls, void *op_result); 357dht_da (void *cls, void *op_result);
@@ -1023,16 +1025,6 @@ announce_next_regex (void *cls)
1023} 1025}
1024 1026
1025 1027
1026/**
1027 * DHT connect callback. Called when we are connected to the dht service for
1028 * the peer in 'cls'. If successful we connect to the stats service of this
1029 * peer and then try to match the search string of this peer.
1030 *
1031 * @param cls internal peer id.
1032 * @param op operation handle.
1033 * @param ca_result connect adapter result.
1034 * @param emsg error message.
1035 */
1036static void 1028static void
1037dht_connect_cb (void *cls, 1029dht_connect_cb (void *cls,
1038 struct GNUNET_TESTBED_Operation *op, 1030 struct GNUNET_TESTBED_Operation *op,
@@ -1060,14 +1052,6 @@ dht_connect_cb (void *cls,
1060} 1052}
1061 1053
1062 1054
1063/**
1064 * DHT connect adapter. Opens a connection to the dht service.
1065 *
1066 * @param cls Closure (peer).
1067 * @param cfg Configuration handle.
1068 *
1069 * @return
1070 */
1071static void * 1055static void *
1072dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg) 1056dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg)
1073{ 1057{
@@ -1079,12 +1063,6 @@ dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg)
1079} 1063}
1080 1064
1081 1065
1082/**
1083 * Adapter function called to destroy a connection to the dht service.
1084 *
1085 * @param cls Closure (peer).
1086 * @param op_result Service handle returned from the connect adapter.
1087 */
1088static void 1066static void
1089dht_da (void *cls, void *op_result) 1067dht_da (void *cls, void *op_result)
1090{ 1068{