aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-09-07 09:51:27 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-09-07 09:51:27 +0000
commite573901041f6367350931c45524e2fd5962b70a6 (patch)
tree01c7059ff2f180101fb91ec80453f878a85741cc /src/transport
parentb76dbdab2b88f47e9f42e9d413935bd43c6fdf0f (diff)
downloadgnunet-e573901041f6367350931c45524e2fd5962b70a6.tar.gz
gnunet-e573901041f6367350931c45524e2fd5962b70a6.zip
fixed doxygen documentation
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_https.c36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/transport/plugin_transport_https.c b/src/transport/plugin_transport_https.c
index 378b755d2..b9e196016 100644
--- a/src/transport/plugin_transport_https.c
+++ b/src/transport/plugin_transport_https.c
@@ -408,6 +408,7 @@ static void http_server_daemon_v4_run (void *cls, const struct GNUNET_SCHEDULER_
408 */ 408 */
409static void http_server_daemon_v6_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); 409static void http_server_daemon_v6_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
410 410
411
411/** 412/**
412 * Function setting up curl handle and selecting message to send 413 * Function setting up curl handle and selecting message to send
413 * @param cls plugin 414 * @param cls plugin
@@ -417,16 +418,14 @@ static void http_server_daemon_v6_run (void *cls, const struct GNUNET_SCHEDULER_
417 */ 418 */
418static ssize_t send_check_connections (void *cls, struct Session *ps); 419static ssize_t send_check_connections (void *cls, struct Session *ps);
419 420
421
420/** 422/**
421 * Function setting up file descriptors and scheduling task to run 423 * Function setting up file descriptors and scheduling task to run
422 * @param cls closure 424 * @param cls plugin as closure
423 * @param ses session to send data to 425 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
424 * @param
425 */ 426 */
426static int curl_schedule(void *cls ); 427static int curl_schedule(void *cls );
427 428
428
429
430static char * create_url(void * cls, const void * addr, size_t addrlen, size_t id) 429static char * create_url(void * cls, const void * addr, size_t addrlen, size_t id)
431{ 430{
432 struct Plugin *plugin = cls; 431 struct Plugin *plugin = cls;
@@ -443,7 +442,7 @@ static char * create_url(void * cls, const void * addr, size_t addrlen, size_t i
443 442
444/** 443/**
445 * Removes a message from the linked list of messages 444 * Removes a message from the linked list of messages
446 * @param con connection to remove message from 445 * @param ps session
447 * @param msg message to remove 446 * @param msg message to remove
448 * @return GNUNET_SYSERR if msg not found, GNUNET_OK on success 447 * @return GNUNET_SYSERR if msg not found, GNUNET_OK on success
449 */ 448 */
@@ -461,7 +460,7 @@ int remove_peer_context_Iterator (void *cls, const GNUNET_HashCode *key, void *v
461 * @param pc peer context 460 * @param pc peer context
462 * @param ps session 461 * @param ps session
463 * @param call_msg_cont GNUNET_YES to call pending message continuations, otherwise no 462 * @param call_msg_cont GNUNET_YES to call pending message continuations, otherwise no
464 * @param call_msg_cont_result, result to call message continuations with 463 * @param call_msg_cont_result result to call message continuations with
465 * @return GNUNET_SYSERR if msg not found, GNUNET_OK on success 464 * @return GNUNET_SYSERR if msg not found, GNUNET_OK on success
466 */ 465 */
467static int remove_session (struct HTTP_PeerContext * pc, struct Session * ps, int call_msg_cont, int call_msg_cont_result) 466static int remove_session (struct HTTP_PeerContext * pc, struct Session * ps, int call_msg_cont, int call_msg_cont_result)
@@ -1525,7 +1524,8 @@ static void curl_perform (void *cls,
1525 1524
1526/** 1525/**
1527 * Function setting up file descriptors and scheduling task to run 1526 * Function setting up file descriptors and scheduling task to run
1528 * @param ses session to send data to 1527 * @param cls plugin as closure
1528 * @param target peer to disconnect from
1529 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok 1529 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
1530 */ 1530 */
1531static void 1531static void
@@ -1583,6 +1583,12 @@ http_plugin_disconnect (void *cls,
1583} 1583}
1584 1584
1585 1585
1586
1587/**
1588 * Function setting up file descriptors and scheduling task to run
1589 * @param cls plugin as closure
1590 * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
1591 */
1586static int curl_schedule(void *cls) 1592static int curl_schedule(void *cls)
1587{ 1593{
1588 struct Plugin *plugin = cls; 1594 struct Plugin *plugin = cls;
@@ -1646,8 +1652,7 @@ static int curl_schedule(void *cls)
1646/** 1652/**
1647 * Function setting up curl handle and selecting message to send 1653 * Function setting up curl handle and selecting message to send
1648 * @param cls plugin 1654 * @param cls plugin
1649 * @param ses session to send data to 1655 * @param ps session
1650 * @param con connection
1651 * @return GNUNET_SYSERR on failure, GNUNET_NO if connecting, GNUNET_YES if ok 1656 * @return GNUNET_SYSERR on failure, GNUNET_NO if connecting, GNUNET_YES if ok
1652 */ 1657 */
1653static ssize_t send_check_connections (void *cls, struct Session *ps) 1658static ssize_t send_check_connections (void *cls, struct Session *ps)
@@ -1938,7 +1943,7 @@ static struct Session * send_select_session (void * cls, struct HTTP_PeerContext
1938 * @param msgbuf_size number of bytes in 'msgbuf' 1943 * @param msgbuf_size number of bytes in 'msgbuf'
1939 * @param priority how important is the message (most plugins will 1944 * @param priority how important is the message (most plugins will
1940 * ignore message priority and just FIFO) 1945 * ignore message priority and just FIFO)
1941 * @param timeout how long to wait at most for the transmission (does not 1946 * @param to how long to wait at most for the transmission (does not
1942 * require plugins to discard the message after the timeout, 1947 * require plugins to discard the message after the timeout,
1943 * just advisory for the desired delay; most plugins will ignore 1948 * just advisory for the desired delay; most plugins will ignore
1944 * this as well) 1949 * this as well)
@@ -2096,15 +2101,6 @@ http_plugin_send (void *cls,
2096} 2101}
2097 2102
2098 2103
2099
2100/**
2101 * Function that can be used to force the plugin to disconnect
2102 * from the given peer and cancel all previous transmissions
2103 * (and their continuationc).
2104 *
2105 * @param cls closure
2106 * @param target peer from which to disconnect
2107 */
2108/** 2104/**
2109 * Convert the transports address to a nice, human-readable 2105 * Convert the transports address to a nice, human-readable
2110 * format. 2106 * format.