From ac0ec4da80c4a70e27b35f2b0271e81cc9708e78 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 5 Oct 2011 13:49:24 +0000 Subject: [PATCH] fixes --- src/core/test_core_api.c | 5 +++-- src/include/gnunet_protocols.h | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/test_core_api.c b/src/core/test_core_api.c index 771f08771..0b704c46b 100644 --- a/src/core/test_core_api.c +++ b/src/core/test_core_api.c @@ -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); diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index f0c8df7ad..78b3a5c94 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -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. -- 2.25.1