aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-01-24 18:33:23 +0000
committerNathan S. Evans <evans@in.tum.de>2010-01-24 18:33:23 +0000
commitd77d6e63d19e35f409b5f4ac439e6204b90bfb80 (patch)
tree183eea2ba06a417c744355aff73c81873d2076a6 /src
parentf82cc65637a07c74d7dafb9465838c922a507df1 (diff)
downloadgnunet-d77d6e63d19e35f409b5f4ac439e6204b90bfb80.tar.gz
gnunet-d77d6e63d19e35f409b5f4ac439e6204b90bfb80.zip
test case performs better, ping/pong happens correctly now (for me). Still requires testing and fixes, also udp still not working as it doesn't supply any addresses to be used in a hello. That should be a simple fix, the reason the test case is not working is likely a misunderstanding of what is supposed to be happening
Diffstat (limited to 'src')
-rw-r--r--src/transport/test_plugin_transport.c2
-rw-r--r--src/transport/test_transport_api.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index 2248f007e..f9539430e 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -37,7 +37,7 @@
37#include "plugin_transport.h" 37#include "plugin_transport.h"
38#include "transport.h" 38#include "transport.h"
39 39
40#define VERBOSE GNUNET_NO 40#define VERBOSE GNUNET_YES
41 41
42/** 42/**
43 * How long until we give up on transmitting the message? 43 * How long until we give up on transmitting the message?
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index e70a34e3e..596261b77 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -33,7 +33,7 @@
33 33
34#define VERBOSE GNUNET_YES 34#define VERBOSE GNUNET_YES
35 35
36#define VERBOSE_ARM GNUNET_YES 36#define VERBOSE_ARM GNUNET_NO
37 37
38#define START_ARM GNUNET_YES 38#define START_ARM GNUNET_YES
39 39
@@ -180,8 +180,7 @@ exchange_hello_last (void *cls,
180 struct PeerContext *me = cls; 180 struct PeerContext *me = cls;
181 181
182 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, me); 182 GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, me);
183 /* Infinite loop, how was this supposed to work? *sound of nate ripping 183
184 * hair out* */
185 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 184 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
186 "Exchanging HELLO with peer (%p)!\n", cls); 185 "Exchanging HELLO with peer (%p)!\n", cls);
187 GNUNET_assert (ok >= 3); 186 GNUNET_assert (ok >= 3);
@@ -217,6 +216,9 @@ exchange_hello (void *cls,
217 GNUNET_assert (GNUNET_OK == 216 GNUNET_assert (GNUNET_OK ==
218 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) 217 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
219 message, &me->id)); 218 message, &me->id));
219
220 GNUNET_TRANSPORT_offer_hello (p2.th, message);
221
220 GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2); 222 GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2);
221} 223}
222 224