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/ats/gnunet-service-ats_addresses.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/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index 2f21ae380..8892f77c4 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -196,16 +196,10 @@ | |||
196 | * prevent the client from being thrashed. If the client requires immediately | 196 | * prevent the client from being thrashed. If the client requires immediately |
197 | * it can reset this block using GAS_addresses_handle_backoff_reset. | 197 | * it can reset this block using GAS_addresses_handle_backoff_reset. |
198 | * | 198 | * |
199 | * 1.7.7 Marking address in use | 199 | * 1.7.7 Address lifecycle |
200 | * | ||
201 | * The client can notify addresses that it successfully uses an address and | ||
202 | * wants this address to be kept by calling GSA_address_in_use. Adresses will | ||
203 | * mark the address as used an notify the solver about the use. | ||
204 | * | ||
205 | * 1.7.8 Address lifecycle | ||
206 | * | 200 | * |
207 | * * (add address) | 201 | * * (add address) |
208 | * * (updated address) || (address in use) | 202 | * * (updated address) |
209 | * * (delete address) | 203 | * * (delete address) |
210 | * | 204 | * |
211 | * 1.8 Bandwidth assignment | 205 | * 1.8 Bandwidth assignment |
@@ -454,27 +448,6 @@ GAS_addresses_add (const struct GNUNET_PeerIdentity *peer, | |||
454 | 448 | ||
455 | 449 | ||
456 | /** | 450 | /** |
457 | * Notification about active use of an address. | ||
458 | * in_use == #GNUNET_YES: | ||
459 | * This address is used to maintain an active connection with a peer. | ||
460 | * in_use == #GNUNET_NO: | ||
461 | * This address is no longer used to maintain an active connection with a peer. | ||
462 | * | ||
463 | * Note: can only be called with in_use == #GNUNET_NO if called with #GNUNET_YES | ||
464 | * before | ||
465 | * | ||
466 | * @param peer peer | ||
467 | * @param session_id session id, can never be 0 | ||
468 | * @param in_use #GNUNET_YES if #GNUNET_NO FIXME | ||
469 | * @return #GNUNET_SYSERR on failure (address unknown ...) | ||
470 | */ | ||
471 | int | ||
472 | GAS_addresses_in_use (const struct GNUNET_PeerIdentity *peer, | ||
473 | uint32_t session_id, | ||
474 | int in_use); | ||
475 | |||
476 | |||
477 | /** | ||
478 | * Update an address with new performance information for a peer. | 451 | * Update an address with new performance information for a peer. |
479 | * | 452 | * |
480 | * @param peer peer | 453 | * @param peer peer |