gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12892 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r12892 - gnunet/src/transport
Date: Tue, 7 Sep 2010 15:30:39 +0200

Author: wachs
Date: 2010-09-07 15:30:39 +0200 (Tue, 07 Sep 2010)
New Revision: 12892

Modified:
   gnunet/src/transport/plugin_transport_http.c
Log:
Improved documentation


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-09-07 13:18:41 UTC 
(rev 12891)
+++ gnunet/src/transport/plugin_transport_http.c        2010-09-07 13:30:39 UTC 
(rev 12892)
@@ -1269,6 +1269,16 @@
   return size * nmemb;
 }
 
+/**
+ * Callback called by libcurl when new headers arrive
+ * Used to get HTTP result for curl operations
+ * @param ptr stream to read from
+ * @param size size of one char element
+ * @param nmemb number of char elements
+ * @param stream closure set by user
+ * @return bytes read by function
+ */
+
 static size_t curl_put_header_cb( void *ptr, size_t size, size_t nmemb, void 
*stream)
 {
   struct Session * ps = stream;
@@ -1433,6 +1443,12 @@
 
 }
 
+/**
+ * Task performing curl operations
+ * @param cls plugin as closure
+ * @param tc gnunet scheduler task context
+ */
+
 static void curl_perform (void *cls,
              const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
@@ -1588,6 +1604,7 @@
 
 /**
  * Function setting up file descriptors and scheduling task to run
+ *
  * @param cls plugin as closure
  * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
  */
@@ -1653,6 +1670,7 @@
 
 /**
  * Function setting up curl handle and selecting message to send
+ *
  * @param cls plugin
  * @param ps session
  * @return GNUNET_SYSERR on failure, GNUNET_NO if connecting, GNUNET_YES if ok
@@ -1815,6 +1833,18 @@
   return GNUNET_SYSERR;
 }
 
+/**
+ * select best session to transmit data to peer
+ *
+ * @param cls closure
+ * @param pc peer context of target peer
+ * @param addr address of target peer
+ * @param addrlen address length
+ * @param force_address does transport service enforce address?
+ * @param session session passed by transport service
+ * @return selected session
+ *
+ */
 static struct Session * send_select_session (void * cls, struct 
HTTP_PeerContext *pc, const void * addr, size_t addrlen, int force_address, 
struct Session * session)
 {
        struct Session * tmp = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]