aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats.h
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/ats/ats.h
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/ats/ats.h')
-rw-r--r--src/ats/ats.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/ats/ats.h b/src/ats/ats.h
index 482b7b4b3..69788971e 100644
--- a/src/ats/ats.h
+++ b/src/ats/ats.h
@@ -105,29 +105,6 @@ struct RequestAddressMessage
105 105
106 106
107/** 107/**
108 * Scheduling client to ATS service: reset backoff for
109 * address suggestions to this peer.
110 */
111struct ResetBackoffMessage
112{
113 /**
114 * Type is #GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF.
115 */
116 struct GNUNET_MessageHeader header;
117
118 /**
119 * Always zero.
120 */
121 uint32_t reserved GNUNET_PACKED;
122
123 /**
124 * Peer to reset backoff for.
125 */
126 struct GNUNET_PeerIdentity peer;
127};
128
129
130/**
131 * ATS client to ATS service: here is another address you can use. 108 * ATS client to ATS service: here is another address you can use.
132 */ 109 */
133struct AddressAddMessage 110struct AddressAddMessage
@@ -214,37 +191,6 @@ struct AddressUpdateMessage
214 191
215 192
216/** 193/**
217 * Message sent from ATS client to ATS service to notify
218 * it if we started (or stopped) using an address.
219 */
220struct AddressUseMessage
221{
222 /**
223 * Type is #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE.
224 */
225 struct GNUNET_MessageHeader header;
226
227 /**
228 * Internal number this client uses to refer to this address.
229 */
230 uint32_t session_id GNUNET_PACKED;
231
232 /**
233 * Which peer is this about? (Technically redundant, as the
234 * @e session_id should be sufficient, but enables ATS service
235 * to find the session faster).
236 */
237 struct GNUNET_PeerIdentity peer;
238
239 /**
240 * #GNUNET_YES or #GNUNET_NO.
241 */
242 uint32_t in_use GNUNET_PACKED;
243
244};
245
246
247/**
248 * Message sent by ATS client to ATS service when an address 194 * Message sent by ATS client to ATS service when an address
249 * was destroyed and must thus henceforth no longer be considered 195 * was destroyed and must thus henceforth no longer be considered
250 * for scheduling. 196 * for scheduling.