diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-29 15:43:11 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-29 15:43:11 +0000 |
commit | 0c3e3371bcc2dad9c4f14561068a1752f01b1756 (patch) | |
tree | 6aa926c5f1ad962594f6c9ad9b238500ad644702 /src/transport/transport.h | |
parent | fd2601f3fce6eefbb7e0f9aaca61f9169b25d3f4 (diff) | |
download | gnunet-0c3e3371bcc2dad9c4f14561068a1752f01b1756.tar.gz gnunet-0c3e3371bcc2dad9c4f14561068a1752f01b1756.zip |
- latest changes for refactoring: iterate sends disassembled hello-address
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 66f40cd06..97620a9b6 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -360,11 +360,24 @@ struct AddressIterateMessage | |||
360 | * timeout to give up. FIXME: remove in the future | 360 | * timeout to give up. FIXME: remove in the future |
361 | */ | 361 | */ |
362 | struct GNUNET_TIME_AbsoluteNBO timeout; | 362 | struct GNUNET_TIME_AbsoluteNBO timeout; |
363 | |||
364 | /** | ||
365 | * The identity of the peer to look up. | ||
366 | */ | ||
367 | struct GNUNET_PeerIdentity peer; | ||
368 | |||
369 | /** | ||
370 | * One shot call or continous replies? | ||
371 | */ | ||
372 | uint32_t one_shot; | ||
373 | |||
363 | }; | 374 | }; |
364 | 375 | ||
365 | /** | 376 | /** |
366 | * Message from the library to the transport service | 377 | * Message from the transport service to the library |
367 | * asking for human readable addresses known for a peer. | 378 | * containing binary addresses known for a peer. |
379 | * Memory layout: | ||
380 | * [AddressIterateResponseMessage][address[addrlen]][transportname[pluginlen]] | ||
368 | */ | 381 | */ |
369 | struct AddressIterateResponseMessage | 382 | struct AddressIterateResponseMessage |
370 | { | 383 | { |
@@ -378,7 +391,7 @@ struct AddressIterateResponseMessage | |||
378 | */ | 391 | */ |
379 | uint32_t reserved; | 392 | uint32_t reserved; |
380 | 393 | ||
381 | /** | 394 | /** |
382 | * Peer identity | 395 | * Peer identity |
383 | */ | 396 | */ |
384 | struct GNUNET_PeerIdentity peer; | 397 | struct GNUNET_PeerIdentity peer; |
@@ -392,6 +405,7 @@ struct AddressIterateResponseMessage | |||
392 | * length of the plugin name | 405 | * length of the plugin name |
393 | */ | 406 | */ |
394 | uint32_t pluginlen GNUNET_PACKED; | 407 | uint32_t pluginlen GNUNET_PACKED; |
408 | |||
395 | }; | 409 | }; |
396 | 410 | ||
397 | 411 | ||