From: Matthias Wachs Date: Wed, 7 Sep 2011 16:16:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~17199 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a32c510c139f0bbfd2d5d4043252c6996da1f5f;p=oweals%2Fgnunet.git --- 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,