aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-01 16:58:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-01 16:58:00 +0000
commit13361222d8b8d47611d67c240ae2329cdc999a7e (patch)
tree6b1f80cddf463309d29952d3847ae49e3a4a60ee /src/transport/plugin_transport_http_client.c
parent549784896976cd2feaf7c1096720300df1cecc26 (diff)
downloadgnunet-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.c11
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);
344static int 344static int
345client_schedule (struct HTTP_Client_Plugin *plugin, int now); 345client_schedule (struct HTTP_Client_Plugin *plugin, int now);
346 346
347
347static int 348static int
348client_connect_put (struct Session *s); 349client_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 */
383static int 386static int
384client_log (CURL *curl, curl_infotype type, char *data, size_t size, void *cls) 387client_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];