aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/ats.h')
-rw-r--r--src/ats/ats.h53
1 files changed, 26 insertions, 27 deletions
diff --git a/src/ats/ats.h b/src/ats/ats.h
index 3ae6fdb65..5b9fa8696 100644
--- a/src/ats/ats.h
+++ b/src/ats/ats.h
@@ -31,13 +31,12 @@
31 31
32enum StartFlag 32enum StartFlag
33{ 33{
34 34
35 START_FLAG_SCHEDULING = 0, 35 START_FLAG_SCHEDULING = 0,
36 36
37 START_FLAG_PERFORMANCE_WITH_PIC = 1, 37 START_FLAG_PERFORMANCE_WITH_PIC = 1,
38 38
39 START_FLAG_PERFORMANCE_NO_PIC = 2 39 START_FLAG_PERFORMANCE_NO_PIC = 2
40
41}; 40};
42 41
43 42
@@ -55,7 +54,7 @@ struct ClientStartMessage
55struct RequestAddressMessage 54struct RequestAddressMessage
56{ 55{
57 struct GNUNET_MessageHeader header; 56 struct GNUNET_MessageHeader header;
58 57
59 uint32_t reserved GNUNET_PACKED; 58 uint32_t reserved GNUNET_PACKED;
60 59
61 struct GNUNET_PeerIdentity peer; 60 struct GNUNET_PeerIdentity peer;
@@ -77,10 +76,10 @@ struct AddressUpdateMessage
77 uint32_t session_id GNUNET_PACKED; 76 uint32_t session_id GNUNET_PACKED;
78 77
79 /* followed by: 78 /* followed by:
80 - struct GNUNET_ATS_Information [ats_count]; 79 * - struct GNUNET_ATS_Information [ats_count];
81 - char address[address_length] 80 * - char address[address_length]
82 - char plugin_name[plugin_name_length] (including '\0'-termination). 81 * - char plugin_name[plugin_name_length] (including '\0'-termination).
83 */ 82 */
84 83
85}; 84};
86 85
@@ -99,9 +98,9 @@ struct AddressUseMessage
99 uint32_t session_id GNUNET_PACKED; 98 uint32_t session_id GNUNET_PACKED;
100 99
101 /* followed by: 100 /* followed by:
102 - char address[address_length] 101 * - char address[address_length]
103 - char plugin_name[plugin_name_length] (including '\0'-termination). 102 * - char plugin_name[plugin_name_length] (including '\0'-termination).
104 */ 103 */
105 104
106}; 105};
107 106
@@ -121,9 +120,9 @@ struct AddressDestroyedMessage
121 uint32_t session_id GNUNET_PACKED; 120 uint32_t session_id GNUNET_PACKED;
122 121
123 /* followed by: 122 /* followed by:
124 - char address[address_length] 123 * - char address[address_length]
125 - char plugin_name[plugin_name_length] (including '\0'-termination). 124 * - char plugin_name[plugin_name_length] (including '\0'-termination).
126 */ 125 */
127 126
128}; 127};
129 128
@@ -143,14 +142,14 @@ struct AddressSuggestionMessage
143 uint32_t session_id GNUNET_PACKED; 142 uint32_t session_id GNUNET_PACKED;
144 143
145 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out; 144 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
146 145
147 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in; 146 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
148 147
149 /* followed by: 148 /* followed by:
150 - struct GNUNET_ATS_Information [ats_count]; 149 * - struct GNUNET_ATS_Information [ats_count];
151 - char address[address_length] 150 * - char address[address_length]
152 - char plugin_name[plugin_name_length] (including '\0'-termination). 151 * - char plugin_name[plugin_name_length] (including '\0'-termination).
153 */ 152 */
154 153
155}; 154};
156 155
@@ -168,14 +167,14 @@ struct PeerInformationMessage
168 uint16_t plugin_name_length GNUNET_PACKED; 167 uint16_t plugin_name_length GNUNET_PACKED;
169 168
170 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out; 169 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
171 170
172 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in; 171 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
173 172
174 /* followed by: 173 /* followed by:
175 - struct GNUNET_ATS_Information [ats_count]; 174 * - struct GNUNET_ATS_Information [ats_count];
176 - char address[address_length] 175 * - char address[address_length]
177 - char plugin_name[plugin_name_length] (including '\0'-termination). 176 * - char plugin_name[plugin_name_length] (including '\0'-termination).
178 */ 177 */
179 178
180}; 179};
181 180
@@ -222,7 +221,7 @@ struct PreferenceInformation
222 uint32_t preference_kind GNUNET_PACKED; 221 uint32_t preference_kind GNUNET_PACKED;
223 222
224 float preference_value GNUNET_PACKED; 223 float preference_value GNUNET_PACKED;
225 224
226}; 225};
227 226
228 227
@@ -234,8 +233,8 @@ struct ChangePreferenceMessage
234 233
235 struct GNUNET_PeerIdentity peer; 234 struct GNUNET_PeerIdentity peer;
236 235
237 /* followed by 'num_preferences' 236 /* followed by 'num_preferences'
238 struct PreferenceInformation values */ 237 * struct PreferenceInformation values */
239}; 238};
240 239
241 240