aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-15 18:09:16 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-15 18:09:16 +0000
commitd80d181ca46d0804af85bb33f16caa4c8eb00f9a (patch)
tree887188d35de602da8793241bae716a998f5702d6 /src/ats/ats.h
parent8978db474d26bef8fd7b023baeb5b8e3cb5224c6 (diff)
downloadgnunet-d80d181ca46d0804af85bb33f16caa4c8eb00f9a.tar.gz
gnunet-d80d181ca46d0804af85bb33f16caa4c8eb00f9a.zip
removing dead code, improving comments, simplifying iteration logic, making iteration over all addresses also faster
Diffstat (limited to 'src/ats/ats.h')
-rw-r--r--src/ats/ats.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/ats/ats.h b/src/ats/ats.h
index 48c8a35d5..a758c3630 100644
--- a/src/ats/ats.h
+++ b/src/ats/ats.h
@@ -202,15 +202,32 @@ struct PeerInformationMessage
202}; 202};
203 203
204 204
205/**
206 * Client to service: please give us an overview of the addresses.
207 */
205struct AddressListRequestMessage 208struct AddressListRequestMessage
206{ 209{
210 /**
211 * Type is #GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_REQUEST
212 */
207 struct GNUNET_MessageHeader header; 213 struct GNUNET_MessageHeader header;
208 214
215 /**
216 * ID used to match replies to this request.
217 */
209 uint32_t id GNUNET_PACKED; 218 uint32_t id GNUNET_PACKED;
210 219
220 /**
221 * Which peer do we care about? All zeros for all.
222 */
223 struct GNUNET_PeerIdentity peer;
224
225 /**
226 * #GNUNET_YES to get information about all addresses,
227 * #GNUNET_NO to only return addresses that are in use.
228 */
211 int32_t all GNUNET_PACKED; 229 int32_t all GNUNET_PACKED;
212 230
213 struct GNUNET_PeerIdentity peer;
214}; 231};
215 232
216 233