aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-29 20:03:12 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-29 20:03:12 +0000
commit75bbeaffe2a1467b6f9f4d80bc4d87ed0d9f14a8 (patch)
tree63885d0e8e55d47ecae25cef37181597115c8980 /src/transport/transport.h
parent56c32ea37a52b239494a7f91933e60eb7caf30f3 (diff)
downloadgnunet-75bbeaffe2a1467b6f9f4d80bc4d87ed0d9f14a8.tar.gz
gnunet-75bbeaffe2a1467b6f9f4d80bc4d87ed0d9f14a8.zip
-cleaning up message format and code related to recent transport address stringification code
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 97620a9b6..bfcf9fe6e 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -295,17 +295,17 @@ struct AddressLookupMessage
295 * Should the conversion use numeric IP addresses (otherwise 295 * Should the conversion use numeric IP addresses (otherwise
296 * a reverse DNS lookup is OK -- if applicable). 296 * a reverse DNS lookup is OK -- if applicable).
297 */ 297 */
298 int32_t numeric_only GNUNET_PACKED; 298 int16_t numeric_only GNUNET_PACKED;
299 299
300 /** 300 /**
301 * timeout to give up. 301 * Length of the (binary) address in bytes, in big-endian.
302 */ 302 */
303 struct GNUNET_TIME_RelativeNBO timeout; 303 uint16_t addrlen GNUNET_PACKED;
304 304
305 /** 305 /**
306 * Length of the (binary) address in bytes, in big-endian. 306 * timeout to give up.
307 */ 307 */
308 uint32_t addrlen GNUNET_PACKED; 308 struct GNUNET_TIME_RelativeNBO timeout;
309 309
310 /* followed by 'addrlen' bytes of the actual address, then 310 /* followed by 'addrlen' bytes of the actual address, then
311 * followed by the 0-terminated name of the transport */ 311 * followed by the 0-terminated name of the transport */
@@ -352,9 +352,9 @@ struct AddressIterateMessage
352 struct GNUNET_MessageHeader header; 352 struct GNUNET_MessageHeader header;
353 353
354 /** 354 /**
355 * For alignment. 355 * One shot call or continous replies?
356 */ 356 */
357 uint32_t reserved; 357 uint32_t one_shot;
358 358
359 /** 359 /**
360 * timeout to give up. FIXME: remove in the future 360 * timeout to give up. FIXME: remove in the future
@@ -366,13 +366,9 @@ struct AddressIterateMessage
366 */ 366 */
367 struct GNUNET_PeerIdentity peer; 367 struct GNUNET_PeerIdentity peer;
368 368
369 /**
370 * One shot call or continous replies?
371 */
372 uint32_t one_shot;
373
374}; 369};
375 370
371
376/** 372/**
377 * Message from the transport service to the library 373 * Message from the transport service to the library
378 * containing binary addresses known for a peer. 374 * containing binary addresses known for a peer.
@@ -382,7 +378,7 @@ struct AddressIterateMessage
382struct AddressIterateResponseMessage 378struct AddressIterateResponseMessage
383{ 379{
384 /** 380 /**
385 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 381 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE_RESPONSE
386 */ 382 */
387 struct GNUNET_MessageHeader header; 383 struct GNUNET_MessageHeader header;
388 384