[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10136 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10136 - gnunet/src/transport |
Date: |
Sun, 24 Jan 2010 19:33:23 +0100 |
Author: nevans
Date: 2010-01-24 19:33:23 +0100 (Sun, 24 Jan 2010)
New Revision: 10136
Modified:
gnunet/src/transport/test_plugin_transport.c
gnunet/src/transport/test_transport_api.c
Log:
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
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2010-01-24 16:49:16 UTC
(rev 10135)
+++ gnunet/src/transport/test_plugin_transport.c 2010-01-24 18:33:23 UTC
(rev 10136)
@@ -37,7 +37,7 @@
#include "plugin_transport.h"
#include "transport.h"
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
/**
* How long until we give up on transmitting the message?
Modified: gnunet/src/transport/test_transport_api.c
===================================================================
--- gnunet/src/transport/test_transport_api.c 2010-01-24 16:49:16 UTC (rev
10135)
+++ gnunet/src/transport/test_transport_api.c 2010-01-24 18:33:23 UTC (rev
10136)
@@ -33,7 +33,7 @@
#define VERBOSE GNUNET_YES
-#define VERBOSE_ARM GNUNET_YES
+#define VERBOSE_ARM GNUNET_NO
#define START_ARM GNUNET_YES
@@ -180,8 +180,7 @@
struct PeerContext *me = cls;
GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, me);
- /* Infinite loop, how was this supposed to work? *sound of nate ripping
- * hair out* */
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Exchanging HELLO with peer (%p)!\n", cls);
GNUNET_assert (ok >= 3);
@@ -217,6 +216,9 @@
GNUNET_assert (GNUNET_OK ==
GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
message, &me->id));
+
+ GNUNET_TRANSPORT_offer_hello (p2.th, message);
+
GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10136 - gnunet/src/transport,
gnunet <=