aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index f1376f5a7..75cdd729c 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -341,11 +341,12 @@ struct AddressLookupMessage
341}; 341};
342 342
343 343
344#if 0
344/** 345/**
345 * Message from the library to the transport service 346 * Message from the library to the transport service
346 * asking for human readable addresses known for a peer. 347 * asking for human readable addresses known for a peer.
347 */ 348 */
348struct PeerAddressLookupMessage 349struct PeerLookupMessage
349{ 350{
350 /** 351 /**
351 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 352 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP
@@ -367,13 +368,14 @@ struct PeerAddressLookupMessage
367 */ 368 */
368 struct GNUNET_PeerIdentity peer; 369 struct GNUNET_PeerIdentity peer;
369}; 370};
371#endif
370 372
371 373
372/** 374/**
373 * Message from the library to the transport service 375 * Message from the library to the transport service
374 * asking for binary addresses known for a peer. 376 * asking for binary addresses known for a peer.
375 */ 377 */
376struct AddressIterateMessage 378struct PeerIterateMessage
377{ 379{
378 /** 380 /**
379 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 381 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE
@@ -427,15 +429,19 @@ struct TrafficMetricMessage
427 429
428 430
429/** 431/**
430 * Message from the transport service to the library 432 * Message from the transport service to the library containing information
431 * containing binary addresses known for a peer. 433 * about a peer. Information contained are:
434 * - current address used to communicate with this peer
435 * - state
436 * - state timeout
437 *
432 * Memory layout: 438 * Memory layout:
433 * [AddressIterateResponseMessage][address[addrlen]][transportname[pluginlen]] 439 * [AddressIterateResponseMessage][address[addrlen]][transportname[pluginlen]]
434 */ 440 */
435struct AddressIterateResponseMessage 441struct PeerIterateResponseMessage
436{ 442{
437 /** 443 /**
438 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE_RESPONSE 444 * Type is #GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE_RESPONSE
439 */ 445 */
440 struct GNUNET_MessageHeader header; 446 struct GNUNET_MessageHeader header;
441 447
@@ -444,18 +450,28 @@ struct AddressIterateResponseMessage
444 */ 450 */
445 uint32_t reserved; 451 uint32_t reserved;
446 452
447 /** 453 /**
448 * Peer identity 454 * Peer identity
449 */ 455 */
450 struct GNUNET_PeerIdentity peer; 456 struct GNUNET_PeerIdentity peer;
451 457
452 /** 458 /**
453 * address length 459 * Timeout for the state this peer is in
460 */
461 struct GNUNET_TIME_AbsoluteNBO state_timeout;
462
463 /**
464 * State this peer is in as #GNUNET_TRANSPORT_PeerState enumeration element
465 */
466 uint32_t state GNUNET_PACKED;
467
468 /**
469 * Address length
454 */ 470 */
455 uint32_t addrlen GNUNET_PACKED; 471 uint32_t addrlen GNUNET_PACKED;
456 472
457 /** 473 /**
458 * length of the plugin name 474 * Length of the plugin name
459 */ 475 */
460 uint32_t pluginlen GNUNET_PACKED; 476 uint32_t pluginlen GNUNET_PACKED;
461 477