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.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index d6db3d22d..79c34c641 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -107,17 +107,17 @@ struct Session;
107 107
108/** 108/**
109 * A connection handle 109 * A connection handle
110 * 110 *
111 */ 111 */
112struct ConnectionHandle 112struct ConnectionHandle
113{ 113{
114 /** 114 /**
115 * The curl easy handle 115 * The curl easy handle
116 */ 116 */
117 CURL *easyhandle; 117 CURL *easyhandle;
118 118
119 /** 119 /**
120 * The related session 120 * The related session
121 */ 121 */
122 struct Session *s; 122 struct Session *s;
123}; 123};
@@ -363,7 +363,7 @@ client_schedule (struct HTTP_Client_Plugin *plugin, int now);
363 363
364 364
365/** 365/**
366 * Connect a HTTP put connection 366 * Connect a HTTP put connection
367 * 367 *
368 * @param s the session to connect 368 * @param s the session to connect
369 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for success 369 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for success
@@ -407,7 +407,7 @@ client_exist_session (struct HTTP_Client_Plugin *plugin, struct Session *s)
407 * @return always 0 407 * @return always 0
408 */ 408 */
409static int 409static int
410client_log (CURL *curl, curl_infotype type, 410client_log (CURL *curl, curl_infotype type,
411 const char *data, size_t size, void *cls) 411 const char *data, size_t size, void *cls)
412{ 412{
413 struct ConnectionHandle *ch = cls; 413 struct ConnectionHandle *ch = cls;
@@ -755,7 +755,7 @@ http_client_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *targ
755 755
756/** 756/**
757 * Check if a sessions exists for an specific address 757 * Check if a sessions exists for an specific address
758 * 758 *
759 * @param plugin the plugin 759 * @param plugin the plugin
760 * @param address the address 760 * @param address the address
761 * @return the session or NULL 761 * @return the session or NULL
@@ -946,7 +946,7 @@ client_receive_mst_cb (void *cls, void *client,
946 "Client: peer `%s' address `%s' next read delayed for %s\n", 946 "Client: peer `%s' address `%s' next read delayed for %s\n",
947 GNUNET_i2s (&s->target), 947 GNUNET_i2s (&s->target),
948 http_common_plugin_address_to_string (NULL, 948 http_common_plugin_address_to_string (NULL,
949 s->plugin->protocol, 949 s->plugin->protocol,
950 s->addr, s->addrlen), 950 s->addr, s->addrlen),
951 GNUNET_STRINGS_relative_time_to_string (delay, 951 GNUNET_STRINGS_relative_time_to_string (delay,
952 GNUNET_YES)); 952 GNUNET_YES));
@@ -1002,7 +1002,7 @@ client_receive (void *stream, size_t size, size_t nmemb, void *cls)
1002 GNUNET_TIME_absolute_get_difference (now, s->next_receive); 1002 GNUNET_TIME_absolute_get_difference (now, s->next_receive);
1003 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name, 1003 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name,
1004 "Session %p / connection %p: No inbound bandwidth available! Next read was delayed for %s\n", 1004 "Session %p / connection %p: No inbound bandwidth available! Next read was delayed for %s\n",
1005 s, s->client_get, 1005 s, s->client_get,
1006 GNUNET_STRINGS_relative_time_to_string (delta, 1006 GNUNET_STRINGS_relative_time_to_string (delta,
1007 GNUNET_YES)); 1007 GNUNET_YES));
1008 if (s->recv_wakeup_task != GNUNET_SCHEDULER_NO_TASK) 1008 if (s->recv_wakeup_task != GNUNET_SCHEDULER_NO_TASK)
@@ -1231,7 +1231,7 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1231 1231
1232/** 1232/**
1233 * Connect GET connection for a session 1233 * Connect GET connection for a session
1234 * 1234 *
1235 * @param s the session to connect 1235 * @param s the session to connect
1236 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise 1236 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
1237 */ 1237 */
@@ -1306,7 +1306,7 @@ client_connect_get (struct Session *s)
1306} 1306}
1307 1307
1308/** 1308/**
1309 * Connect a HTTP put connection 1309 * Connect a HTTP put connection
1310 * 1310 *
1311 * @param s the session to connect 1311 * @param s the session to connect
1312 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok 1312 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
@@ -1383,7 +1383,7 @@ client_connect_put (struct Session *s)
1383 1383
1384/** 1384/**
1385 * Connect both PUT and GET connection for a session 1385 * Connect both PUT and GET connection for a session
1386 * 1386 *
1387 * @param s the session to connect 1387 * @param s the session to connect
1388 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise 1388 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
1389 */ 1389 */
@@ -1627,7 +1627,7 @@ client_start_session_timeout (struct Session *s)
1627 s); 1627 s);
1628 GNUNET_log (TIMEOUT_LOG, 1628 GNUNET_log (TIMEOUT_LOG,
1629 "Timeout for session %p set to %s\n", 1629 "Timeout for session %p set to %s\n",
1630 s, 1630 s,
1631 GNUNET_STRINGS_relative_time_to_string (CLIENT_SESSION_TIMEOUT, 1631 GNUNET_STRINGS_relative_time_to_string (CLIENT_SESSION_TIMEOUT,
1632 GNUNET_YES)); 1632 GNUNET_YES));
1633} 1633}