diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-04 13:59:35 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-11-04 13:59:35 +0000 |
commit | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (patch) | |
tree | b1a4eb6bc53497fde67a372249011d9103a48a31 /src/include | |
parent | 892c5652b368111d42ac15d383109bf7212d70ed (diff) | |
download | gnunet-28a2eb43281a1f08a67954f07beb9af3a9bc9a35.tar.gz gnunet-28a2eb43281a1f08a67954f07beb9af3a9bc9a35.zip |
extending ats api to inform about addresses in use
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_ats_service.h | 21 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 5 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index 3d1c5b2b2..ed5631a33 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -557,6 +557,27 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_SchedulingHandle *sh, | |||
557 | 557 | ||
558 | 558 | ||
559 | /** | 559 | /** |
560 | * An address is now in use or not used any more. | ||
561 | * | ||
562 | * @param sh handle | ||
563 | * @param peer identity of the peer | ||
564 | * @param plugin_name name of the transport plugin | ||
565 | * @param plugin_addr address (if available) | ||
566 | * @param plugin_addr_len number of bytes in plugin_addr | ||
567 | * @param session session handle | ||
568 | * @param in_use GNUNET_YES if this address is now used, GNUNET_NO | ||
569 | * if address is not used any more | ||
570 | */ | ||
571 | void | ||
572 | GNUNET_ATS_address_in_use (struct GNUNET_ATS_SchedulingHandle *sh, | ||
573 | const struct GNUNET_PeerIdentity *peer, | ||
574 | const char *plugin_name, | ||
575 | const void *plugin_addr, | ||
576 | size_t plugin_addr_len, | ||
577 | struct Session *session, | ||
578 | int in_use); | ||
579 | |||
580 | /** | ||
560 | * A session got destroyed, stop including it as a valid address. | 581 | * A session got destroyed, stop including it as a valid address. |
561 | * | 582 | * |
562 | * @param sh handle | 583 | * @param sh handle |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index fd52939f5..160ae26f1 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -954,6 +954,11 @@ extern "C" | |||
954 | */ | 954 | */ |
955 | #define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349 | 955 | #define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349 |
956 | 956 | ||
957 | /** | ||
958 | * Type of the 'struct AddressUseMessage' sent by ATS to client | ||
959 | * to confirm that an address is used or not used anymore | ||
960 | */ | ||
961 | #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 350 | ||
957 | 962 | ||
958 | 963 | ||
959 | /******************************************************************************* | 964 | /******************************************************************************* |