fixes
authorChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:49:24 +0000 (13:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:49:24 +0000 (13:49 +0000)
src/core/test_core_api.c
src/include/gnunet_protocols.h

index 771f08771ec74bd110f266ce9a9a4fb48df8d87d..0b704c46b306c091365a1d565ccc9e3f6c029ab2 100644 (file)
@@ -34,7 +34,8 @@
 #include "gnunet_scheduler_lib.h"
 #include "gnunet_transport_service.h"
 
-#define VERBOSE GNUNET_EXTRA_LOGGING
+#define VERBOSE 2 
+// GNUNET_EXTRA_LOGGING
 
 #define START_ARM GNUNET_YES
 
@@ -79,7 +80,7 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received (my) `%s' from transport service\n", "HELLO");
   GNUNET_assert (message != NULL);
-  if ((p == &p1) && (p2.th != NULL))
+  if ((p == &p1) && (p2.th != NULL))  
     GNUNET_TRANSPORT_offer_hello (p2.th, message, NULL, NULL);
   if ((p == &p2) && (p1.th != NULL))
     GNUNET_TRANSPORT_offer_hello (p1.th, message, NULL, NULL);
index f0c8df7ad6f5efcb22ee66b755a07002196ab635..78b3a5c94b8af55a0037abc63c4972fd0dda5d11 100644 (file)
@@ -208,6 +208,11 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
 
+/**
+ * Message for transport service from a client asking that a
+ * connection be initiated with another peer.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
 
 /**
  * Transport CONNECT message exchanged between transport services to
@@ -423,10 +428,6 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
 
-/**
- * Request from client asking to connect to a peer.
- */
-#define GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT 77
 
 /**
  * Request for peer iteration from CORE service.