(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 23 Jun 2010 11:09:21 +0000 (11:09 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 23 Jun 2010 11:09:21 +0000 (11:09 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index 311e0717b195e3204d9e6dcab893ded181010f2a..350a0f3cfc456d89fdb1398c85236bf1a745215a 100644 (file)
@@ -195,17 +195,6 @@ struct Session
 
   size_t addr_out_len;
 
-  /**
-   * Sender's ip address to distinguish between incoming connections
-   */
-  //char * addr_inbound_str;
-
-
-  /**
-   * Sender's ip address specified by transport
-   */
-  //struct sockaddr_in * addr_outbound;
-
   /**
    * Did we initiate the connection (GNUNET_YES) or the other peer (GNUNET_NO)?
    */
@@ -248,14 +237,29 @@ struct Session
    */
   struct GNUNET_CRYPTO_HashAsciiEncoded hash;
 
-  //struct HTTP_Message * pending_outbound_msg;
+  /**
+   * Head of dll used to store outbound messages
+   */
   struct HTTP_Message * pending_outbound_msg_head;
+
+  /**
+   * Tail of dll used to store outbound messages
+   */
   struct HTTP_Message * pending_outbound_msg_tail;
 
+  /**
+   * Incoming message
+   */
   struct HTTP_Message * pending_inbound_msg;
 
+  /**
+   * curl handle for outbound transmissions
+   */
   CURL *curl_handle;
 
+  /**
+   * Message tokenizer for incoming data
+   */
   struct GNUNET_SERVER_MessageStreamTokenizer * msgtok;
 };
 
@@ -297,7 +301,6 @@ static GNUNET_SCHEDULER_TaskIdentifier http_task_v4;
  */
 static GNUNET_SCHEDULER_TaskIdentifier http_task_v6;
 
-
 /**
  * The task sending data
  */
index 4daa21de69e102858eb30ba343406c351c9a721e..6ac9255129bc2d9738d52bde2d30fa2a9e23a260 100644 (file)
@@ -517,7 +517,7 @@ receive (void *cls,
          const char *sender_address,
          uint16_t sender_address_len)
 {
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testcase recieved new message from peer `%s' (`%s') with type %u and length %u\n",  GNUNET_i2s(peer), sender_address, ntohs(message->type), ntohs(message->size));
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testcase recieved new message from peer `%s' with type %u and length %u\n",  GNUNET_i2s(peer), ntohs(message->type), ntohs(message->size));
   if ((ntohs(message->type) == 40) &&   (fail_multiple_msgs_in_transmission == 1))
     fail_multiple_msgs_in_transmission++;
   if ((ntohs(message->type) == 41) &&   (fail_multiple_msgs_in_transmission == 2))