diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-01 16:58:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-01 16:58:00 +0000 |
commit | 13361222d8b8d47611d67c240ae2329cdc999a7e (patch) | |
tree | 6b1f80cddf463309d29952d3847ae49e3a4a60ee /src/transport/plugin_transport_http_client.c | |
parent | 549784896976cd2feaf7c1096720300df1cecc26 (diff) | |
download | gnunet-13361222d8b8d47611d67c240ae2329cdc999a7e.tar.gz gnunet-13361222d8b8d47611d67c240ae2329cdc999a7e.zip |
-doxygen
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 8eca99857..ad57e368a 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -344,9 +344,11 @@ client_stop_session_timeout (struct Session *s); | |||
344 | static int | 344 | static int |
345 | client_schedule (struct HTTP_Client_Plugin *plugin, int now); | 345 | client_schedule (struct HTTP_Client_Plugin *plugin, int now); |
346 | 346 | ||
347 | |||
347 | static int | 348 | static int |
348 | client_connect_put (struct Session *s); | 349 | client_connect_put (struct Session *s); |
349 | 350 | ||
351 | |||
350 | /** | 352 | /** |
351 | * Does a session s exists? | 353 | * Does a session s exists? |
352 | * | 354 | * |
@@ -370,21 +372,24 @@ client_exist_session (struct HTTP_Client_Plugin *plugin, struct Session *s) | |||
370 | return GNUNET_NO; | 372 | return GNUNET_NO; |
371 | } | 373 | } |
372 | 374 | ||
375 | |||
373 | /** | 376 | /** |
374 | * Loggging function | 377 | * Loggging function |
375 | * | 378 | * |
376 | * @param curl the curl easy handle | 379 | * @param curl the curl easy handle |
377 | * @param type message type | 380 | * @param type message type |
378 | * @param data data as a not \0-terminated string | 381 | * @param data data to log, NOT a 0-terminated string |
379 | * @param size data length | 382 | * @param size data length |
380 | * @param cls the closure | 383 | * @param cls the closure |
381 | * @return always 0 | 384 | * @return always 0 |
382 | */ | 385 | */ |
383 | static int | 386 | static int |
384 | client_log (CURL *curl, curl_infotype type, char *data, size_t size, void *cls) | 387 | client_log (CURL *curl, curl_infotype type, |
388 | const char *data, size_t size, void *cls) | ||
385 | { | 389 | { |
386 | struct ConnectionHandle *ch = cls; | 390 | struct ConnectionHandle *ch = cls; |
387 | char *ttype = "UNSPECIFIED"; | 391 | const char *ttype = "UNSPECIFIED"; |
392 | |||
388 | if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT)) | 393 | if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT)) |
389 | { | 394 | { |
390 | char text[size + 2]; | 395 | char text[size + 2]; |