(no commit message)
[oweals/gnunet.git] / src / transport / transport.h
index 8e1291005904ff8a5c2fe31af3ece3d46a394fa2..fed4bf162b6bdc4bcf0e444e742a1d35ba524999 100644 (file)
@@ -219,9 +219,9 @@ struct OutboundMessage
   struct GNUNET_MessageHeader header;
 
   /**
-   * Always zero.
+   * Message priority.
    */
-  uint32_t reserved GNUNET_PACKED;
+  uint32_t priority GNUNET_PACKED;
 
   /**
    * Which peer should receive the message?
@@ -233,6 +233,32 @@ struct OutboundMessage
 
 
 
+/**
+ * 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;
+
+  /**
+   * timeout to give up.
+   */
+  struct GNUNET_TIME_AbosluteNBO tiemout;
+
+  /**
+   * 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 */