gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9689 - in gnunet/src: include transport


From: gnunet
Subject: [GNUnet-SVN] r9689 - in gnunet/src: include transport
Date: Thu, 3 Dec 2009 14:52:05 +0100

Author: grothoff
Date: 2009-12-03 14:52:05 +0100 (Thu, 03 Dec 2009)
New Revision: 9689

Modified:
   gnunet/src/include/gnunet_common.h
   gnunet/src/include/gnunet_protocols.h
   gnunet/src/transport/transport.h
Log:
stuff for jilu

Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h  2009-12-03 07:38:48 UTC (rev 9688)
+++ gnunet/src/include/gnunet_common.h  2009-12-03 13:52:05 UTC (rev 9689)
@@ -71,12 +71,13 @@
 {
 
   /**
-   * 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;
 

Modified: gnunet/src/include/gnunet_protocols.h
===================================================================
--- gnunet/src/include/gnunet_protocols.h       2009-12-03 07:38:48 UTC (rev 
9688)
+++ gnunet/src/include/gnunet_protocols.h       2009-12-03 13:52:05 UTC (rev 
9689)
@@ -175,8 +175,18 @@
  */
 #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
  */
 #define GNUNET_MESSAGE_TYPE_PEERINFO_ADD 32

Modified: gnunet/src/transport/transport.h
===================================================================
--- gnunet/src/transport/transport.h    2009-12-03 07:38:48 UTC (rev 9688)
+++ gnunet/src/transport/transport.h    2009-12-03 13:52:05 UTC (rev 9689)
@@ -233,6 +233,27 @@
 
 
 
+/**
+ * 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 */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]