aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-06-22 16:46:40 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-06-22 16:46:40 +0000
commite7b06b02627422d771d108b072768aaebc998947 (patch)
treefc7a7188e207677e6648e1e4615825b6c3306f99 /src/transport/test_plugin_transport_http.c
parentea582a17c1b6f9a8c5f67280d36fe836490dbc9b (diff)
downloadgnunet-e7b06b02627422d771d108b072768aaebc998947.tar.gz
gnunet-e7b06b02627422d771d108b072768aaebc998947.zip
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r--src/transport/test_plugin_transport_http.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c
index 63e8be3a1..4daa21de6 100644
--- a/src/transport/test_plugin_transport_http.c
+++ b/src/transport/test_plugin_transport_http.c
@@ -1025,6 +1025,20 @@ static void run_connection_tests( )
1025 msg2->type = htons(41); 1025 msg2->type = htons(41);
1026 api->send(api->cls, &my_identity, tmp, 4 * sizeof(struct GNUNET_MessageHeader), 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, NULL); 1026 api->send(api->cls, &my_identity, tmp, 4 * sizeof(struct GNUNET_MessageHeader), 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, NULL);
1027 1027
1028
1029 /* send a multiple GNUNET_messages at a time, second message has incorrect size*/
1030/* GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Ping Hello Message\n");
1031 GNUNET_free(tmp);
1032 tmp = GNUNET_malloc(425);
1033 msg1 = (struct GNUNET_MessageHeader *) tmp;
1034 msg1->size = htons(353);
1035 msg1->type = htons(16);
1036 msg2 = &tmp[353];
1037 msg2->size = htons(72);
1038 msg2->type = htons(32);
1039 api->send(api->cls, &my_identity, tmp, 425, 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, NULL);*/
1040
1041
1028 /* send a message with size GNUNET_SERVER_MAX_MESSAGE_SIZE )*/ 1042 /* send a message with size GNUNET_SERVER_MAX_MESSAGE_SIZE )*/
1029 GNUNET_free(tmp); 1043 GNUNET_free(tmp);
1030 tmp = GNUNET_malloc(GNUNET_SERVER_MAX_MESSAGE_SIZE); 1044 tmp = GNUNET_malloc(GNUNET_SERVER_MAX_MESSAGE_SIZE);