diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-07 16:07:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-07 16:07:48 +0000 |
commit | 230c72bb1a9aae87bbbd0f1da505f33fc42b1b99 (patch) | |
tree | e80c4b8028828fc9f6d4bf89ff1efda86fb07994 /src/include | |
parent | 381046a7d5c92f5ec1b9bf4566eecacfde269099 (diff) | |
download | gnunet-230c72bb1a9aae87bbbd0f1da505f33fc42b1b99.tar.gz gnunet-230c72bb1a9aae87bbbd0f1da505f33fc42b1b99.zip |
porting gnunet-transport-list-connections to binary address
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_transport_service.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h index 6c443cee8..8435271f9 100644 --- a/src/include/gnunet_transport_service.h +++ b/src/include/gnunet_transport_service.h | |||
@@ -446,7 +446,7 @@ typedef void (*GNUNET_TRANSPORT_NotifyDisconnect) (void *cls, | |||
446 | 446 | ||
447 | 447 | ||
448 | /** | 448 | /** |
449 | * Function to call with a human-readable format of an address | 449 | * Function to call with a binary format of an address |
450 | * | 450 | * |
451 | * @param cls closure | 451 | * @param cls closure |
452 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string | 452 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string |
@@ -456,6 +456,25 @@ typedef void (*GNUNET_TRANSPORT_AddressLookUpCallback) (void *cls, | |||
456 | 456 | ||
457 | 457 | ||
458 | /** | 458 | /** |
459 | * Function to call with a binary format of an address | ||
460 | * | ||
461 | * @param cls closure | ||
462 | * @param peer peer identity | ||
463 | * @param transport transport plugin | ||
464 | * @param addr address | ||
465 | * @param addrlen address length | ||
466 | */ | ||
467 | typedef void (*GNUNET_TRANSPORT_AddressLookUpBinaryCallback) (void *cls, | ||
468 | const struct | ||
469 | GNUNET_PeerIdentity | ||
470 | * peer, | ||
471 | const char | ||
472 | *transport, | ||
473 | const void *addr, | ||
474 | size_t addrlen); | ||
475 | |||
476 | |||
477 | /** | ||
459 | * Connect to the transport service. Note that the connection may | 478 | * Connect to the transport service. Note that the connection may |
460 | * complete (or fail) asynchronously. | 479 | * complete (or fail) asynchronously. |
461 | * | 480 | * |
@@ -672,7 +691,7 @@ GNUNET_TRANSPORT_peer_address_lookup (const struct GNUNET_CONFIGURATION_Handle | |||
672 | void | 691 | void |
673 | GNUNET_TRANSPORT_address_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg, | 692 | GNUNET_TRANSPORT_address_iterate (const struct GNUNET_CONFIGURATION_Handle *cfg, |
674 | struct GNUNET_TIME_Relative timeout, | 693 | struct GNUNET_TIME_Relative timeout, |
675 | GNUNET_TRANSPORT_AddressLookUpCallback | 694 | GNUNET_TRANSPORT_AddressLookUpBinaryCallback |
676 | peer_address_callback, | 695 | peer_address_callback, |
677 | void *peer_address_callback_cls); | 696 | void *peer_address_callback_cls); |
678 | 697 | ||