[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11898 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11898 - gnunet/src/transport |
Date: |
Wed, 23 Jun 2010 13:09:21 +0200 |
Author: wachs
Date: 2010-06-23 13:09:21 +0200 (Wed, 23 Jun 2010)
New Revision: 11898
Modified:
gnunet/src/transport/plugin_transport_http.c
gnunet/src/transport/test_plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-06-23 11:01:02 UTC
(rev 11897)
+++ gnunet/src/transport/plugin_transport_http.c 2010-06-23 11:09:21 UTC
(rev 11898)
@@ -196,17 +196,6 @@
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)?
*/
int is_client;
@@ -248,14 +237,29 @@
*/
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_v6;
-
/**
* The task sending data
*/
Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c 2010-06-23 11:01:02 UTC
(rev 11897)
+++ gnunet/src/transport/test_plugin_transport_http.c 2010-06-23 11:09:21 UTC
(rev 11898)
@@ -517,7 +517,7 @@
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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11898 - gnunet/src/transport,
gnunet <=