diff options
author | Willow Liquorice <willow@howhill.com> | 2022-08-27 23:14:48 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-08-30 09:42:10 +0200 |
commit | a47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc (patch) | |
tree | 2c93bb0c3674cbeec5d3ab28328682459ca77cb8 /src | |
parent | 8c6a68c258061f68466905393b76106436d3dccf (diff) | |
download | gnunet-a47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc.tar.gz gnunet-a47c17fc2b07fd5ed743e671e85a1e7d8b63a7fc.zip |
-DOC: Minor passes over NAT, REGEX, and TRANSPORT
Diffstat (limited to 'src')
-rw-r--r-- | src/nat/gnunet-service-nat_mini.c | 5 | ||||
-rw-r--r-- | src/regex/gnunet-regex-profiler.c | 40 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport.c | 7 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 6 |
4 files changed, 10 insertions, 48 deletions
diff --git a/src/nat/gnunet-service-nat_mini.c b/src/nat/gnunet-service-nat_mini.c index 24f77d9cc..ba43946cd 100644 --- a/src/nat/gnunet-service-nat_mini.c +++ b/src/nat/gnunet-service-nat_mini.c | |||
@@ -471,11 +471,6 @@ process_refresh_output (void *cls, const char *line) | |||
471 | } | 471 | } |
472 | 472 | ||
473 | 473 | ||
474 | /** | ||
475 | * Run "upnpc -l" to find out if our mapping changed. | ||
476 | * | ||
477 | * @param cls the 'struct GNUNET_NAT_MiniHandle' | ||
478 | */ | ||
479 | static void | 474 | static void |
480 | do_refresh (void *cls) | 475 | do_refresh (void *cls) |
481 | { | 476 | { |
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 | */ |
354 | static void | 356 | static void |
355 | dht_da (void *cls, void *op_result); | 357 | dht_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 | */ | ||
1036 | static void | 1028 | static void |
1037 | dht_connect_cb (void *cls, | 1029 | dht_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 | */ | ||
1071 | static void * | 1055 | static void * |
1072 | dht_ca (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg) | 1056 | dht_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 | */ | ||
1088 | static void | 1066 | static void |
1089 | dht_da (void *cls, void *op_result) | 1067 | dht_da (void *cls, void *op_result) |
1090 | { | 1068 | { |
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index fad2ca4a1..345a0d949 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -480,7 +480,7 @@ client_connect_cb (void *cls, | |||
480 | /** | 480 | /** |
481 | * Perform next action in the blacklist check. | 481 | * Perform next action in the blacklist check. |
482 | * | 482 | * |
483 | * @param cls the `struct BlacklistCheck*` | 483 | * @param cls the `struct GST_BlacklistCheck *` |
484 | */ | 484 | */ |
485 | static void | 485 | static void |
486 | do_blacklist_check (void *cls); | 486 | do_blacklist_check (void *cls); |
@@ -2189,11 +2189,6 @@ shutdown_task (void *cls) | |||
2189 | } | 2189 | } |
2190 | 2190 | ||
2191 | 2191 | ||
2192 | /** | ||
2193 | * Perform next action in the blacklist check. | ||
2194 | * | ||
2195 | * @param cls the `struct GST_BlacklistCheck *` | ||
2196 | */ | ||
2197 | static void | 2192 | static void |
2198 | do_blacklist_check (void *cls) | 2193 | do_blacklist_check (void *cls) |
2199 | { | 2194 | { |
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 18bfcc054..476a3cd52 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -1692,12 +1692,6 @@ client_connect_get (struct GNUNET_ATS_Session *s) | |||
1692 | } | 1692 | } |
1693 | 1693 | ||
1694 | 1694 | ||
1695 | /** | ||
1696 | * Connect a HTTP put request | ||
1697 | * | ||
1698 | * @param s the session to connect | ||
1699 | * @return #GNUNET_SYSERR for hard failure, #GNUNET_OK for ok | ||
1700 | */ | ||
1701 | static int | 1695 | static int |
1702 | client_connect_put (struct GNUNET_ATS_Session *s) | 1696 | client_connect_put (struct GNUNET_ATS_Session *s) |
1703 | { | 1697 | { |