aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index eb8e66988..8eca99857 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -48,6 +48,7 @@
48#include <curl/curl.h> 48#include <curl/curl.h>
49 49
50 50
51
51/** 52/**
52 * Encapsulation of all of the state of the plugin. 53 * Encapsulation of all of the state of the plugin.
53 */ 54 */
@@ -369,19 +370,18 @@ client_exist_session (struct HTTP_Client_Plugin *plugin, struct Session *s)
369 return GNUNET_NO; 370 return GNUNET_NO;
370} 371}
371 372
372
373/** 373/**
374 * Function to log curl debug messages with GNUNET_log 374 * Loggging function
375 * 375 *
376 * @param curl handle 376 * @param curl the curl easy handle
377 * @param type curl_infotype 377 * @param type message type
378 * @param data data 378 * @param data data as a not \0-terminated string
379 * @param size size 379 * @param size data length
380 * @param cls closure 380 * @param cls the closure
381 * @return 0 381 * @return always 0
382 */ 382 */
383static int 383static int
384client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls) 384client_log (CURL *curl, curl_infotype type, char *data, size_t size, void *cls)
385{ 385{
386 struct ConnectionHandle *ch = cls; 386 struct ConnectionHandle *ch = cls;
387 char *ttype = "UNSPECIFIED"; 387 char *ttype = "UNSPECIFIED";
@@ -432,7 +432,6 @@ client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls)
432} 432}
433 433
434 434
435
436/** 435/**
437 * Function that can be used by the transport service to transmit 436 * Function that can be used by the transport service to transmit
438 * a message using the plugin. Note that in the case of a 437 * a message using the plugin. Note that in the case of a
@@ -462,11 +461,12 @@ client_log (CURL * curl, curl_infotype type, char *data, size_t size, void *cls)
462 */ 461 */
463static ssize_t 462static ssize_t
464http_client_plugin_send (void *cls, 463http_client_plugin_send (void *cls,
465 struct Session *s, 464 struct Session *s,
466 const char *msgbuf, size_t msgbuf_size, 465 const char *msgbuf, size_t msgbuf_size,
467 unsigned int priority, 466 unsigned int priority,
468 struct GNUNET_TIME_Relative to, 467 struct GNUNET_TIME_Relative to,
469 GNUNET_TRANSPORT_TransmitContinuation cont, void *cont_cls) 468 GNUNET_TRANSPORT_TransmitContinuation cont,
469 void *cont_cls)
470{ 470{
471 struct HTTP_Client_Plugin *plugin = cls; 471 struct HTTP_Client_Plugin *plugin = cls;
472 struct HTTP_Message *msg; 472 struct HTTP_Message *msg;