struct GNUNET_MessageHeader header;
/**
- * For alignment.
+ * Connect (GNUNET_YES) or connect (GNUNET_NO).
*/
- uint32_t reserved;
+ uint32_t connect;
/**
* Identity of the peer we would like to connect to.
};
+/**
+ * Message used to notify the transport API about an address to string
+ * conversion. Message is followed by the string with length strlen
+ */
+struct AddressToStringResultMessage
+{
+
+ /**
+ * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * GNUNET_OK if the conversion succeeded,
+ * GNUNET_SYSERR if it failed
+ */
+ uint32_t res GNUNET_PACKED;
+
+ /**
+ * Length of the following string
+ */
+ uint32_t addr_len GNUNET_PACKED;
+};
+
+
+
/**
* Message used to notify the transport service about a message
{
/**
- * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_SEND
+ * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_SEND
*/
struct GNUNET_MessageHeader header;
/**
- * Message priority.
+ * Always zero.
*/
- uint32_t priority GNUNET_PACKED;
+ uint32_t reserved GNUNET_PACKED;
/**
* Allowed delay.