diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-10 21:21:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-10 21:21:01 +0000 |
commit | 3b2b7374d2d31f7b2638c82711f40f7113e9f7f0 (patch) | |
tree | 9dbdac6a4cabe0367bffd864c69c0ac8358a2c45 /src/dht/dht.h | |
parent | 5e756a09598021c6bb22cdbe1b0ac1011679ec0a (diff) | |
download | gnunet-3b2b7374d2d31f7b2638c82711f40f7113e9f7f0.tar.gz gnunet-3b2b7374d2d31f7b2638c82711f40f7113e9f7f0.zip |
-implementing #2435
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index 772471a7c..f736c8d75 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -109,6 +109,39 @@ struct GNUNET_DHT_ClientGetMessage | |||
109 | 109 | ||
110 | 110 | ||
111 | /** | 111 | /** |
112 | * DHT GET RESULTS KNOWN message sent from clients to service. Indicates that a GET | ||
113 | * request should exclude certain results which are already known. | ||
114 | */ | ||
115 | struct GNUNET_DHT_ClientGetResultSeenMessage | ||
116 | { | ||
117 | /** | ||
118 | * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN | ||
119 | */ | ||
120 | struct GNUNET_MessageHeader header; | ||
121 | |||
122 | /** | ||
123 | * Reserved, always 0. | ||
124 | */ | ||
125 | uint32_t reserved GNUNET_PACKED; | ||
126 | |||
127 | /** | ||
128 | * The key we are searching for (to make it easy to find the corresponding | ||
129 | * GET inside the service). | ||
130 | */ | ||
131 | struct GNUNET_HashCode key; | ||
132 | |||
133 | /** | ||
134 | * Unique ID identifying this request. | ||
135 | */ | ||
136 | uint64_t unique_id GNUNET_PACKED; | ||
137 | |||
138 | /* Followed by an array of the hash codes of known results */ | ||
139 | |||
140 | }; | ||
141 | |||
142 | |||
143 | |||
144 | /** | ||
112 | * Reply to a GET send from the service to a client. | 145 | * Reply to a GET send from the service to a client. |
113 | */ | 146 | */ |
114 | struct GNUNET_DHT_ClientResultMessage | 147 | struct GNUNET_DHT_ClientResultMessage |
@@ -325,7 +358,7 @@ struct GNUNET_DHT_MonitorStartStopMessage | |||
325 | struct GNUNET_DHT_MonitorGetMessage | 358 | struct GNUNET_DHT_MonitorGetMessage |
326 | { | 359 | { |
327 | /** | 360 | /** |
328 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT | 361 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET |
329 | */ | 362 | */ |
330 | struct GNUNET_MessageHeader header; | 363 | struct GNUNET_MessageHeader header; |
331 | 364 | ||