diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-03 16:11:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-03 16:11:15 +0000 |
commit | d9b68f30f930830b455eea95d0bc619553180136 (patch) | |
tree | ca3b084bac4c5b52a8b90f916b51d8ea9619510d /src/transport/gnunet-service-transport_ats.h | |
parent | f0b02e3444d7653f2c1dabab449825b80e390855 (diff) | |
download | gnunet-d9b68f30f930830b455eea95d0bc619553180136.tar.gz gnunet-d9b68f30f930830b455eea95d0bc619553180136.zip |
add internal API to enable telling ATS about 'failed' suggestions
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.h')
-rw-r--r-- | src/transport/gnunet-service-transport_ats.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h index b203cc323..53c4caa68 100644 --- a/src/transport/gnunet-service-transport_ats.h +++ b/src/transport/gnunet-service-transport_ats.h | |||
@@ -26,10 +26,6 @@ | |||
26 | * - add API to give ATS feedback about an address that was | 26 | * - add API to give ATS feedback about an address that was |
27 | * suggested but did not work out (without fully 'deleting' | 27 | * suggested but did not work out (without fully 'deleting' |
28 | * it forever) | 28 | * it forever) |
29 | * - improve ATS API to take advantage of this new subsystem | ||
30 | * when calling ATS functions, make ATS API match this API | ||
31 | * more closely | ||
32 | * - combine with API to tell ATS about address "use" | ||
33 | */ | 29 | */ |
34 | #ifndef GNUNET_SERVICE_TRANSPORT_ATS_H | 30 | #ifndef GNUNET_SERVICE_TRANSPORT_ATS_H |
35 | #define GNUNET_SERVICE_TRANSPORT_ATS_H | 31 | #define GNUNET_SERVICE_TRANSPORT_ATS_H |
@@ -61,6 +57,21 @@ int | |||
61 | GST_ats_is_known (const struct GNUNET_HELLO_Address *address, | 57 | GST_ats_is_known (const struct GNUNET_HELLO_Address *address, |
62 | struct Session *session); | 58 | struct Session *session); |
63 | 59 | ||
60 | |||
61 | /** | ||
62 | * Temporarily block a valid address for use by ATS for address | ||
63 | * suggestions. This function should be called if an address was | ||
64 | * suggested by ATS but failed to perform (i.e. failure to establish a | ||
65 | * session or to exchange the PING/PONG). | ||
66 | * | ||
67 | * @param address the address to block | ||
68 | * @param session the session (can be NULL) | ||
69 | */ | ||
70 | void | ||
71 | GST_ats_block_address (const struct GNUNET_HELLO_Address *address, | ||
72 | struct Session *session); | ||
73 | |||
74 | |||
64 | /** | 75 | /** |
65 | * Notify ATS about the new address including the network this address is | 76 | * Notify ATS about the new address including the network this address is |
66 | * located in. | 77 | * located in. |