aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-07-24 12:58:10 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-07-24 12:58:10 +0000
commit821e1221afc9f9fd127379865bd2e470232bd918 (patch)
tree348d3bce4b2766b736159d346f022212ff0f3c67 /src/transport/plugin_transport_http_server.c
parentc057bd312c783e0a2f3783dfd888a66f490b0a30 (diff)
downloadgnunet-821e1221afc9f9fd127379865bd2e470232bd918.tar.gz
gnunet-821e1221afc9f9fd127379865bd2e470232bd918.zip
fixing documentation
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index bed2de34f..74375462d 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -952,6 +952,7 @@ server_v6_run (void *cls,
952 * 952 *
953 * @param plugin plugin 953 * @param plugin plugin
954 * @param daemon_handle the MHD daemon handle 954 * @param daemon_handle the MHD daemon handle
955 * @param now schedule now
955 * @return gnunet task identifier 956 * @return gnunet task identifier
956 */ 957 */
957static GNUNET_SCHEDULER_TaskIdentifier 958static GNUNET_SCHEDULER_TaskIdentifier
@@ -3210,18 +3211,15 @@ LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls)
3210 3211
3211 3212
3212/** 3213/**
3213 * Function called by the pretty printer for the resolved address for 3214 * Function called for a quick conversion of the binary address to
3214 * each human-readable address obtained. The callback can be called 3215 * a numeric address. Note that the caller must not free the
3215 * several times. The last invocation must be with a @a address of 3216 * address and that the next call to this function is allowed
3216 * NULL and a @a res of #GNUNET_OK. Thus, to indicate conversion 3217 * to override the address again.
3217 * errors, the callback might be called first with @a address NULL and
3218 * @a res being #GNUNET_SYSERR. In that case, there must still be a
3219 * subsequent call later with @a address NULL and @a res #GNUNET_OK.
3220 * 3218 *
3221 * @param cls closure 3219 * @param cls unused
3222 * @param address one of the names for the host, NULL on last callback 3220 * @param addr binary address
3223 * @param res #GNUNET_OK if conversion was successful, #GNUNET_SYSERR on failure, 3221 * @param addrlen length of the address
3224 * #GNUNET_OK on last callback 3222 * @return string representing the same address
3225 */ 3223 */
3226static const char * 3224static const char *
3227http_server_plugin_address_to_string (void *cls, 3225http_server_plugin_address_to_string (void *cls,
@@ -3262,7 +3260,7 @@ http_server_plugin_get_network (void *cls,
3262static void 3260static void
3263http_server_plugin_update_inbound_delay (void *cls, 3261http_server_plugin_update_inbound_delay (void *cls,
3264 const struct GNUNET_PeerIdentity *peer, 3262 const struct GNUNET_PeerIdentity *peer,
3265 struct Session *s, 3263 struct Session *session,
3266 struct GNUNET_TIME_Relative delay) 3264 struct GNUNET_TIME_Relative delay)
3267{ 3265{
3268 s->next_receive = GNUNET_TIME_relative_to_absolute (delay); 3266 s->next_receive = GNUNET_TIME_relative_to_absolute (delay);