diff options
Diffstat (limited to 'src/ats/ats2.h')
-rw-r--r-- | src/ats/ats2.h | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/ats/ats2.h b/src/ats/ats2.h index ad9b0a3da..723a8440d 100644 --- a/src/ats/ats2.h +++ b/src/ats/ats2.h | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file ats/ats2.h | 21 | * @file ats/ats2.h |
22 | * @brief automatic transport selection messages | 22 | * @brief automatic transport selection messages |
@@ -36,9 +36,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
36 | /** | 36 | /** |
37 | * ATS performance characteristics for an address. | 37 | * ATS performance characteristics for an address. |
38 | */ | 38 | */ |
39 | struct PropertiesNBO | 39 | struct PropertiesNBO { |
40 | { | ||
41 | |||
42 | /** | 40 | /** |
43 | * Delay. Time between when the time packet is sent and the packet | 41 | * Delay. Time between when the time packet is sent and the packet |
44 | * arrives. FOREVER if we did not (successfully) measure yet. | 42 | * arrives. FOREVER if we did not (successfully) measure yet. |
@@ -101,7 +99,6 @@ struct PropertiesNBO | |||
101 | * A `enum GNUNET_TRANSPORT_CommunicatorCharacteristics` in NBO. | 99 | * A `enum GNUNET_TRANSPORT_CommunicatorCharacteristics` in NBO. |
102 | */ | 100 | */ |
103 | uint32_t cc; | 101 | uint32_t cc; |
104 | |||
105 | }; | 102 | }; |
106 | 103 | ||
107 | 104 | ||
@@ -109,8 +106,7 @@ struct PropertiesNBO | |||
109 | * Application client to ATS service: we would like to have | 106 | * Application client to ATS service: we would like to have |
110 | * address suggestions for this peer. | 107 | * address suggestions for this peer. |
111 | */ | 108 | */ |
112 | struct ExpressPreferenceMessage | 109 | struct ExpressPreferenceMessage { |
113 | { | ||
114 | /** | 110 | /** |
115 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SUGGEST or | 111 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SUGGEST or |
116 | * #GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL to stop | 112 | * #GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL to stop |
@@ -133,15 +129,13 @@ struct ExpressPreferenceMessage | |||
133 | * How much bandwidth in bytes/second does the application expect? | 129 | * How much bandwidth in bytes/second does the application expect? |
134 | */ | 130 | */ |
135 | struct GNUNET_BANDWIDTH_Value32NBO bw; | 131 | struct GNUNET_BANDWIDTH_Value32NBO bw; |
136 | |||
137 | }; | 132 | }; |
138 | 133 | ||
139 | 134 | ||
140 | /** | 135 | /** |
141 | * Transport client to ATS service: here is another session you can use. | 136 | * Transport client to ATS service: here is another session you can use. |
142 | */ | 137 | */ |
143 | struct SessionAddMessage | 138 | struct SessionAddMessage { |
144 | { | ||
145 | /** | 139 | /** |
146 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD or | 140 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD or |
147 | * #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY | 141 | * #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY |
@@ -167,7 +161,6 @@ struct SessionAddMessage | |||
167 | /* followed by: | 161 | /* followed by: |
168 | * - char * address (including '\0'-termination). | 162 | * - char * address (including '\0'-termination). |
169 | */ | 163 | */ |
170 | |||
171 | }; | 164 | }; |
172 | 165 | ||
173 | 166 | ||
@@ -175,8 +168,7 @@ struct SessionAddMessage | |||
175 | * Message used to notify ATS that the performance | 168 | * Message used to notify ATS that the performance |
176 | * characteristics for an session have changed. | 169 | * characteristics for an session have changed. |
177 | */ | 170 | */ |
178 | struct SessionUpdateMessage | 171 | struct SessionUpdateMessage { |
179 | { | ||
180 | /** | 172 | /** |
181 | * Message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE. | 173 | * Message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE. |
182 | */ | 174 | */ |
@@ -198,7 +190,6 @@ struct SessionUpdateMessage | |||
198 | * Performance properties of the session. | 190 | * Performance properties of the session. |
199 | */ | 191 | */ |
200 | struct PropertiesNBO properties; | 192 | struct PropertiesNBO properties; |
201 | |||
202 | }; | 193 | }; |
203 | 194 | ||
204 | 195 | ||
@@ -207,8 +198,7 @@ struct SessionUpdateMessage | |||
207 | * was destroyed and must thus henceforth no longer be considered | 198 | * was destroyed and must thus henceforth no longer be considered |
208 | * for scheduling. | 199 | * for scheduling. |
209 | */ | 200 | */ |
210 | struct SessionDelMessage | 201 | struct SessionDelMessage { |
211 | { | ||
212 | /** | 202 | /** |
213 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL. | 203 | * Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL. |
214 | */ | 204 | */ |
@@ -225,7 +215,6 @@ struct SessionDelMessage | |||
225 | * to find the session faster). | 215 | * to find the session faster). |
226 | */ | 216 | */ |
227 | struct GNUNET_PeerIdentity peer; | 217 | struct GNUNET_PeerIdentity peer; |
228 | |||
229 | }; | 218 | }; |
230 | 219 | ||
231 | 220 | ||
@@ -234,8 +223,7 @@ struct SessionDelMessage | |||
234 | * identified by the given @e session_id for the given @e peer with | 223 | * identified by the given @e session_id for the given @e peer with |
235 | * the given @e bandwidth_in and @e bandwidth_out limits from now on. | 224 | * the given @e bandwidth_in and @e bandwidth_out limits from now on. |
236 | */ | 225 | */ |
237 | struct SessionAllocationMessage | 226 | struct SessionAllocationMessage { |
238 | { | ||
239 | /** | 227 | /** |
240 | * A message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION. | 228 | * A message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION. |
241 | */ | 229 | */ |
@@ -263,7 +251,6 @@ struct SessionAllocationMessage | |||
263 | * How much bandwidth we are allowed for receiving. | 251 | * How much bandwidth we are allowed for receiving. |
264 | */ | 252 | */ |
265 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in; | 253 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in; |
266 | |||
267 | }; | 254 | }; |
268 | 255 | ||
269 | 256 | ||
@@ -271,8 +258,7 @@ struct SessionAllocationMessage | |||
271 | * ATS Service suggests to the transport service to try the address | 258 | * ATS Service suggests to the transport service to try the address |
272 | * for the given @e peer. | 259 | * for the given @e peer. |
273 | */ | 260 | */ |
274 | struct AddressSuggestionMessage | 261 | struct AddressSuggestionMessage { |
275 | { | ||
276 | /** | 262 | /** |
277 | * A message of type #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION. | 263 | * A message of type #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION. |
278 | */ | 264 | */ |