aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-09 16:38:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-09 16:38:01 +0000
commitf67083411d4443bfac0abe9f4f42656936e92d9d (patch)
tree1be20eff7c7451a0fed703f24ade72374fc3672a /src
parent0eb7262331293c2a0edff4fc392d3a1d6cc4923f (diff)
downloadgnunet-f67083411d4443bfac0abe9f4f42656936e92d9d.tar.gz
gnunet-f67083411d4443bfac0abe9f4f42656936e92d9d.zip
cancel suggests
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_ats_service.h10
-rw-r--r--src/include/gnunet_protocols.h26
2 files changed, 27 insertions, 9 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index a6edc786c..8c9be13d4 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -497,6 +497,16 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh,
497 497
498 498
499/** 499/**
500 * We want to cancel ATS suggesting addresses for a peer.
501 *
502 * @param sh handle
503 * @param peer identity of the peer
504 */
505void
506GNUNET_ATS_suggest_address_cancel (struct GNUNET_ATS_SchedulingHandle *sh,
507 const struct GNUNET_PeerIdentity *peer);
508
509/**
500 * We have updated performance statistics for a given address. Note 510 * We have updated performance statistics for a given address. Note
501 * that this function can be called for addresses that are currently 511 * that this function can be called for addresses that are currently
502 * in use as well as addresses that are valid but not actively in use. 512 * in use as well as addresses that are valid but not actively in use.
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 160ae26f1..3e33b51e5 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -907,58 +907,66 @@ extern "C"
907#define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341 907#define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341
908 908
909/** 909/**
910 * Type of the 'struct RequestAddressMessage' sent by clients to ATS
911 * to request an address to help connect.
912 */
913#define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL 342
914
915/**
910 * Type of the 'struct AddressUpdateMessage' sent by clients to ATS 916 * Type of the 'struct AddressUpdateMessage' sent by clients to ATS
911 * to inform ATS about performance changes. 917 * to inform ATS about performance changes.
912 */ 918 */
913#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 342 919#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 343
914 920
915/** 921/**
916 * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS 922 * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS
917 * to inform ATS about an address being unavailable. 923 * to inform ATS about an address being unavailable.
918 */ 924 */
919#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 343 925#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 344
920 926
921/** 927/**
922 * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients 928 * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients
923 * to suggest switching to a different address. 929 * to suggest switching to a different address.
924 */ 930 */
925#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 344 931#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 345
926 932
927/** 933/**
928 * Type of the 'struct PeerInformationMessage' sent by ATS to clients 934 * Type of the 'struct PeerInformationMessage' sent by ATS to clients
929 * to inform about QoS for a particular connection. 935 * to inform about QoS for a particular connection.
930 */ 936 */
931#define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 345 937#define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 346
932 938
933/** 939/**
934 * Type of the 'struct ReservationRequestMessage' sent by clients to ATS 940 * Type of the 'struct ReservationRequestMessage' sent by clients to ATS
935 * to ask for inbound bandwidth reservations. 941 * to ask for inbound bandwidth reservations.
936 */ 942 */
937#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 346 943#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 347
938 944
939/** 945/**
940 * Type of the 'struct ReservationResultMessage' sent by ATS to clients 946 * Type of the 'struct ReservationResultMessage' sent by ATS to clients
941 * in response to a reservation request. 947 * in response to a reservation request.
942 */ 948 */
943#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 347 949#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 348
944 950
945/** 951/**
946 * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS 952 * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
947 * to ask for allocation preference changes. 953 * to ask for allocation preference changes.
948 */ 954 */
949#define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 348 955#define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 349
950 956
951/** 957/**
952 * Type of the 'struct SessionReleaseMessage' sent by ATS to client 958 * Type of the 'struct SessionReleaseMessage' sent by ATS to client
953 * to confirm that a session ID was destroyed. 959 * to confirm that a session ID was destroyed.
954 */ 960 */
955#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349 961#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350
956 962
957/** 963/**
958 * Type of the 'struct AddressUseMessage' sent by ATS to client 964 * Type of the 'struct AddressUseMessage' sent by ATS to client
959 * to confirm that an address is used or not used anymore 965 * to confirm that an address is used or not used anymore
960 */ 966 */
961#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 350 967#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 351
968
969
962 970
963 971
964/******************************************************************************* 972/*******************************************************************************