From: Matthias Wachs Date: Wed, 23 Jun 2010 11:09:21 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21264 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c12e4b8e8200a0d87b16543b673bb61cb7fd9325;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 311e0717b..350a0f3cf 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -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 */ diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 4daa21de6..6ac925512 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -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))