{
/**
- * The length of the struct (in bytes, including the length field itself)
+ * The length of the struct (in bytes, including the length field itself),
+ * in big-endian format.
*/
uint16_t size GNUNET_PACKED;
/**
- * The type of the message (XX_CS_PROTO_XXXX)
+ * The type of the message (GNUNET_MESSAGE_TYPE_XXXX), in big-endian format.
*/
uint16_t type GNUNET_PACKED;
*/
#define GNUNET_MESSAGE_TYPE_TRANSPORT_ACK 28
+/**
+ * FIXME.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 29
+
+/**
+ * FIXME.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 30
+
/**
* Request addition of a HELLO
+/**
+ * Message from the library to the transport service
+ * asking for converting a transport address to a
+ * human-readable UTF-8 string.
+ */
+struct AddressLookupMessage
+{
+
+ /**
+ * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Length of the (binary) address in bytes, in big-endian.
+ */
+ uint32_t addrlen GNUNET_PACKED;
+
+ /* followed by 'addrlen' bytes of the actual address, then
+ followed by the 0-terminated name of the transport */
+};
/* end of transport.h */