From 6a32c510c139f0bbfd2d5d4043252c6996da1f5f Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 7 Sep 2011 16:16:00 +0000 Subject: [PATCH] --- src/transport/transport.h | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/src/transport/transport.h b/src/transport/transport.h index 89ace764c..99fa16866 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -30,7 +30,7 @@ #include "gnunet_time_lib.h" #include "gnunet_transport_service.h" -#define DEBUG_TRANSPORT 3 +#define DEBUG_TRANSPORT GNUNET_YES #define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO @@ -355,7 +355,7 @@ struct PeerAddressLookupMessage /** * Message from the library to the transport service - * asking for human readable addresses known for a peer. + * asking for binary addresses known for a peer. */ struct AddressIterateMessage { @@ -375,6 +375,38 @@ struct AddressIterateMessage struct GNUNET_TIME_AbsoluteNBO timeout; }; +/** + * Message from the library to the transport service + * asking for human readable addresses known for a peer. + */ +struct AddressIterateResponseMessage +{ + /** + * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY + */ + struct GNUNET_MessageHeader header; + + /** + * For alignment. + */ + uint32_t reserved; + + /** + * Peer identity + */ + struct GNUNET_PeerIdentity peer; + + /** + * address length + */ + uint32_t addrlen GNUNET_PACKED; + + /** + * length of the plugin name + */ + uint32_t pluginlen GNUNET_PACKED; +}; + /** * Change in blacklisting (either request or notification, -- 2.25.1