diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-05 15:50:23 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-05 15:50:23 +0000 |
commit | 60920228fd7344ededc9f0711f2b47ddffa02313 (patch) | |
tree | 74280880a891a0d29774c8eaa41ccafc0b957e24 /src/transport/plugin_transport_http_client.c | |
parent | 4143a2a87350c92b920f286fd6ceabf3b3363c8e (diff) | |
download | gnunet-60920228fd7344ededc9f0711f2b47ddffa02313.tar.gz gnunet-60920228fd7344ededc9f0711f2b47ddffa02313.zip |
doxygen error
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index ad57e368a..a11d13736 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -104,9 +104,20 @@ struct HTTP_Message | |||
104 | */ | 104 | */ |
105 | struct Session; | 105 | struct Session; |
106 | 106 | ||
107 | /** | ||
108 | * A connection handle | ||
109 | * | ||
110 | */ | ||
107 | struct ConnectionHandle | 111 | struct ConnectionHandle |
108 | { | 112 | { |
113 | /** | ||
114 | * The curl easy handle | ||
115 | */ | ||
109 | CURL *easyhandle; | 116 | CURL *easyhandle; |
117 | |||
118 | /** | ||
119 | * The related session | ||
120 | */ | ||
110 | struct Session *s; | 121 | struct Session *s; |
111 | }; | 122 | }; |
112 | 123 | ||
@@ -345,6 +356,12 @@ static int | |||
345 | client_schedule (struct HTTP_Client_Plugin *plugin, int now); | 356 | client_schedule (struct HTTP_Client_Plugin *plugin, int now); |
346 | 357 | ||
347 | 358 | ||
359 | /** | ||
360 | * Connect a HTTP put connection | ||
361 | * | ||
362 | * @param s the session to connect | ||
363 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for success | ||
364 | */ | ||
348 | static int | 365 | static int |
349 | client_connect_put (struct Session *s); | 366 | client_connect_put (struct Session *s); |
350 | 367 | ||
@@ -415,7 +432,6 @@ client_log (CURL *curl, curl_infotype type, | |||
415 | break; | 432 | break; |
416 | } | 433 | } |
417 | 434 | ||
418 | #if VERBOSE_CURL | ||
419 | memcpy (text, data, size); | 435 | memcpy (text, data, size); |
420 | if (text[size - 1] == '\n') | 436 | if (text[size - 1] == '\n') |
421 | text[size] = '\0'; | 437 | text[size] = '\0'; |
@@ -432,7 +448,6 @@ client_log (CURL *curl, curl_infotype type, | |||
432 | "Connection %p %s: %s", ch->easyhandle, ttype, text); | 448 | "Connection %p %s: %s", ch->easyhandle, ttype, text); |
433 | #endif | 449 | #endif |
434 | } | 450 | } |
435 | #endif | ||
436 | return 0; | 451 | return 0; |
437 | } | 452 | } |
438 | 453 | ||
@@ -998,7 +1013,7 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
998 | /** | 1013 | /** |
999 | * Function setting up file descriptors and scheduling task to run | 1014 | * Function setting up file descriptors and scheduling task to run |
1000 | * | 1015 | * |
1001 | * @param plugin plugin as closure | 1016 | * @param plugin the plugin as closure |
1002 | * @param now schedule task in 1ms, regardless of what curl may say | 1017 | * @param now schedule task in 1ms, regardless of what curl may say |
1003 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok | 1018 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok |
1004 | */ | 1019 | */ |
@@ -1240,6 +1255,12 @@ client_connect_get (struct Session *s) | |||
1240 | return GNUNET_OK; | 1255 | return GNUNET_OK; |
1241 | } | 1256 | } |
1242 | 1257 | ||
1258 | /** | ||
1259 | * Connect a HTTP put connection | ||
1260 | * | ||
1261 | * @param s the session to connect | ||
1262 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok | ||
1263 | */ | ||
1243 | static int | 1264 | static int |
1244 | client_connect_put (struct Session *s) | 1265 | client_connect_put (struct Session *s) |
1245 | { | 1266 | { |