aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-12-03 13:52:05 +0000
committerChristian Grothoff <christian@grothoff.org>2009-12-03 13:52:05 +0000
commitbd012c7a0b67ce43c119fde66139d2709a1043fc (patch)
tree0f358c4a544cd4a190fcbc56cb45324fc1554477
parent39edcc9862ce7ccb90b9059960f54733ee4d590b (diff)
downloadgnunet-bd012c7a0b67ce43c119fde66139d2709a1043fc.tar.gz
gnunet-bd012c7a0b67ce43c119fde66139d2709a1043fc.zip
stuff for jilu
-rw-r--r--src/include/gnunet_common.h5
-rw-r--r--src/include/gnunet_protocols.h10
-rw-r--r--src/transport/transport.h21
3 files changed, 34 insertions, 2 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index df601ac19..e3e62a143 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -71,12 +71,13 @@ struct GNUNET_MessageHeader
71{ 71{
72 72
73 /** 73 /**
74 * The length of the struct (in bytes, including the length field itself) 74 * The length of the struct (in bytes, including the length field itself),
75 * in big-endian format.
75 */ 76 */
76 uint16_t size GNUNET_PACKED; 77 uint16_t size GNUNET_PACKED;
77 78
78 /** 79 /**
79 * The type of the message (XX_CS_PROTO_XXXX) 80 * The type of the message (GNUNET_MESSAGE_TYPE_XXXX), in big-endian format.
80 */ 81 */
81 uint16_t type GNUNET_PACKED; 82 uint16_t type GNUNET_PACKED;
82 83
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index ff35c6b97..68fd641e3 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -175,6 +175,16 @@ extern "C"
175 */ 175 */
176#define GNUNET_MESSAGE_TYPE_TRANSPORT_ACK 28 176#define GNUNET_MESSAGE_TYPE_TRANSPORT_ACK 28
177 177
178/**
179 * FIXME.
180 */
181#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 29
182
183/**
184 * FIXME.
185 */
186#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 30
187
178 188
179/** 189/**
180 * Request addition of a HELLO 190 * Request addition of a HELLO
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 13dcbb6b8..5de46b38f 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -233,6 +233,27 @@ struct OutboundMessage
233 233
234 234
235 235
236/**
237 * Message from the library to the transport service
238 * asking for converting a transport address to a
239 * human-readable UTF-8 string.
240 */
241struct AddressLookupMessage
242{
243
244 /**
245 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP
246 */
247 struct GNUNET_MessageHeader header;
248
249 /**
250 * Length of the (binary) address in bytes, in big-endian.
251 */
252 uint32_t addrlen GNUNET_PACKED;
253
254 /* followed by 'addrlen' bytes of the actual address, then
255 followed by the 0-terminated name of the transport */
256};
236 257
237 258
238/* end of transport.h */ 259/* end of transport.h */