diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 00:53:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 00:53:22 +0000 |
commit | 15dd8e6cc1199d611d804853e134882bf13b234a (patch) | |
tree | 7cc90886eabe8d0ffa397a319e12a87042d0ba28 /src/include/gnunet_ats_plugin.h | |
parent | bf6a2c9deeff7a3b384eb029d8267d6099066df3 (diff) | |
download | gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.tar.gz gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.zip |
Various changes:
- removed "in_use" from being passed to ATS, no
longer needed as we tell ATS when we cannot
follow a suggestion by removing the address;
simplifies the code a lot
- better handling of state machine, fallback to
primary session if address switch to new
session timed out
- nicer logging
- more comments
- new testcase failures, because of
#3652, #3651 and #3650 (or more that i missed).
Diffstat (limited to 'src/include/gnunet_ats_plugin.h')
-rw-r--r-- | src/include/gnunet_ats_plugin.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/include/gnunet_ats_plugin.h b/src/include/gnunet_ats_plugin.h index 15c3ebbf4..02875a070 100644 --- a/src/include/gnunet_ats_plugin.h +++ b/src/include/gnunet_ats_plugin.h | |||
@@ -142,18 +142,6 @@ typedef void | |||
142 | (*GAS_solver_address_session_changed) (void *solver, | 142 | (*GAS_solver_address_session_changed) (void *solver, |
143 | struct ATS_Address *address, uint32_t cur_session, uint32_t new_session); | 143 | struct ATS_Address *address, uint32_t cur_session, uint32_t new_session); |
144 | 144 | ||
145 | /** | ||
146 | * Transport session for this address has changed | ||
147 | * | ||
148 | * NOTE: values in addresses are already updated | ||
149 | * | ||
150 | * @param solver solver handle | ||
151 | * @param address the address | ||
152 | * @param in_use usage state | ||
153 | */ | ||
154 | typedef void | ||
155 | (*GAS_solver_address_inuse_changed) (void *solver, struct ATS_Address *address, | ||
156 | int in_use); | ||
157 | 145 | ||
158 | /** | 146 | /** |
159 | * Network scope for this address has changed | 147 | * Network scope for this address has changed |
@@ -218,12 +206,6 @@ struct GNUNET_ATS_SolverFunctions | |||
218 | GAS_solver_address_session_changed s_address_update_session; | 206 | GAS_solver_address_session_changed s_address_update_session; |
219 | 207 | ||
220 | /** | 208 | /** |
221 | * Notify the solver that in address is (not) actively used by transport | ||
222 | * to communicate with a remote peer | ||
223 | */ | ||
224 | GAS_solver_address_inuse_changed s_address_update_inuse; | ||
225 | |||
226 | /** | ||
227 | * Notify solver that the network an address is located in has changed | 209 | * Notify solver that the network an address is located in has changed |
228 | */ | 210 | */ |
229 | GAS_solver_address_network_changed s_address_update_network; | 211 | GAS_solver_address_network_changed s_address_update_network; |