aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
commit15dd8e6cc1199d611d804853e134882bf13b234a (patch)
tree7cc90886eabe8d0ffa397a319e12a87042d0ba28 /src/include
parentbf6a2c9deeff7a3b384eb029d8267d6099066df3 (diff)
downloadgnunet-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')
-rw-r--r--src/include/gnunet_ats_plugin.h18
-rw-r--r--src/include/gnunet_ats_service.h24
-rw-r--r--src/include/gnunet_protocols.h12
3 files changed, 0 insertions, 54 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 */
154typedef 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;
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 88df7d0da..380a2a7af 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -481,18 +481,6 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh);
481 481
482 482
483/** 483/**
484 * We would like to reset the address suggestion block time for this
485 * peer.
486 *
487 * @param sh handle
488 * @param peer identity of the peer we want to reset
489 */
490void
491GNUNET_ATS_reset_backoff (struct GNUNET_ATS_SchedulingHandle *sh,
492 const struct GNUNET_PeerIdentity *peer);
493
494
495/**
496 * Test if a address and a session is known to ATS. 484 * Test if a address and a session is known to ATS.
497 * 485 *
498 * @param sh the scheduling handle 486 * @param sh the scheduling handle
@@ -582,18 +570,6 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar,
582 570
583 571
584/** 572/**
585 * An address is now in use, or not used any more.
586 *
587 * @param ar address record for which to toggle the flag
588 * @param in_use #GNUNET_YES if this address is now used, #GNUNET_NO
589 * if address is not used any more
590 */
591void
592GNUNET_ATS_address_set_in_use (struct GNUNET_ATS_AddressRecord *ar,
593 int in_use);
594
595
596/**
597 * An address got destroyed, stop using it as a valid address. 573 * An address got destroyed, stop using it as a valid address.
598 * 574 *
599 * @param ar address record to destroy, it's validation has 575 * @param ar address record to destroy, it's validation has
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 57bbdfceb..fa21ce97a 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -1148,18 +1148,6 @@ extern "C"
1148#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350 1148#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350
1149 1149
1150/** 1150/**
1151 * Type of the 'struct AddressUseMessage' sent by ATS to client
1152 * to confirm that an address is used or not used anymore
1153 */
1154#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 351
1155
1156/**
1157 * Type of the 'struct AddressUseMessage' sent by ATS to client
1158 * to confirm that an address is used or not used anymore
1159 */
1160#define GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF 352
1161
1162/**
1163 * Type of the 'struct AddressUpdateMessage' sent by client to ATS 1151 * Type of the 'struct AddressUpdateMessage' sent by client to ATS
1164 * to add a new address 1152 * to add a new address
1165 */ 1153 */