aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-11-05 15:58:42 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-11-05 15:58:42 +0000
commit7982325109c7cdcd1574317fc3d0789f20191e84 (patch)
tree64b9fb05d929461b8ae2f691ca3a7bafa51c07d3 /src/transport/plugin_transport_http_client.c
parent6aa52dfc22bdd6590d6288696648a48ddaf79294 (diff)
downloadgnunet-7982325109c7cdcd1574317fc3d0789f20191e84.tar.gz
gnunet-7982325109c7cdcd1574317fc3d0789f20191e84.zip
docu
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index a11d13736..88ac261b1 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -747,7 +747,13 @@ http_client_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *targ
747 747
748} 748}
749 749
750 750/**
751 * Check if a sessions exists for an specific address
752 *
753 * @param plugin the plugin
754 * @param address the address
755 * @return the session or NULL
756 */
751static struct Session * 757static struct Session *
752client_lookup_session (struct HTTP_Client_Plugin *plugin, 758client_lookup_session (struct HTTP_Client_Plugin *plugin,
753 const struct GNUNET_HELLO_Address *address) 759 const struct GNUNET_HELLO_Address *address)
@@ -1203,6 +1209,13 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1203 client_schedule (plugin, GNUNET_NO); 1209 client_schedule (plugin, GNUNET_NO);
1204} 1210}
1205 1211
1212
1213/**
1214 * Connect GET connection for a session
1215 *
1216 * @param s the session to connect
1217 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
1218 */
1206static int 1219static int
1207client_connect_get (struct Session *s) 1220client_connect_get (struct Session *s)
1208{ 1221{
@@ -1314,6 +1327,13 @@ client_connect_put (struct Session *s)
1314 return GNUNET_OK; 1327 return GNUNET_OK;
1315} 1328}
1316 1329
1330
1331/**
1332 * Connect both PUT and GET connection for a session
1333 *
1334 * @param s the session to connect
1335 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
1336 */
1317static int 1337static int
1318client_connect (struct Session *s) 1338client_connect (struct Session *s)
1319{ 1339{