summaryrefslogtreecommitdiff
path: root/src/dht/dht.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r--src/dht/dht.h39
1 files changed, 11 insertions, 28 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 46fad3669..3d5fc0963 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -11,12 +11,12 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
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/** 21/**
22 * @author Christian Grothoff 22 * @author Christian Grothoff
@@ -40,8 +40,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
40 * Message which indicates the DHT should cancel outstanding 40 * Message which indicates the DHT should cancel outstanding
41 * requests and discard any state. 41 * requests and discard any state.
42 */ 42 */
43struct GNUNET_DHT_ClientGetStopMessage 43struct GNUNET_DHT_ClientGetStopMessage {
44{
45 /** 44 /**
46 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 45 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP
47 */ 46 */
@@ -61,7 +60,6 @@ struct GNUNET_DHT_ClientGetStopMessage
61 * Key of this request 60 * Key of this request
62 */ 61 */
63 struct GNUNET_HashCode key; 62 struct GNUNET_HashCode key;
64
65}; 63};
66 64
67 65
@@ -69,8 +67,7 @@ struct GNUNET_DHT_ClientGetStopMessage
69 * DHT GET message sent from clients to service. Indicates that a GET 67 * DHT GET message sent from clients to service. Indicates that a GET
70 * request should be issued. 68 * request should be issued.
71 */ 69 */
72struct GNUNET_DHT_ClientGetMessage 70struct GNUNET_DHT_ClientGetMessage {
73{
74 /** 71 /**
75 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 72 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET
76 */ 73 */
@@ -104,7 +101,6 @@ struct GNUNET_DHT_ClientGetMessage
104 uint64_t unique_id GNUNET_PACKED; 101 uint64_t unique_id GNUNET_PACKED;
105 102
106 /* Possibly followed by xquery, copied to end of this dealy do */ 103 /* Possibly followed by xquery, copied to end of this dealy do */
107
108}; 104};
109 105
110 106
@@ -112,8 +108,7 @@ struct GNUNET_DHT_ClientGetMessage
112 * DHT GET RESULTS KNOWN message sent from clients to service. Indicates that a GET 108 * DHT GET RESULTS KNOWN message sent from clients to service. Indicates that a GET
113 * request should exclude certain results which are already known. 109 * request should exclude certain results which are already known.
114 */ 110 */
115struct GNUNET_DHT_ClientGetResultSeenMessage 111struct GNUNET_DHT_ClientGetResultSeenMessage {
116{
117 /** 112 /**
118 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 113 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN
119 */ 114 */
@@ -136,7 +131,6 @@ struct GNUNET_DHT_ClientGetResultSeenMessage
136 uint64_t unique_id GNUNET_PACKED; 131 uint64_t unique_id GNUNET_PACKED;
137 132
138 /* Followed by an array of the hash codes of known results */ 133 /* Followed by an array of the hash codes of known results */
139
140}; 134};
141 135
142 136
@@ -144,8 +138,7 @@ struct GNUNET_DHT_ClientGetResultSeenMessage
144/** 138/**
145 * Reply to a GET send from the service to a client. 139 * Reply to a GET send from the service to a client.
146 */ 140 */
147struct GNUNET_DHT_ClientResultMessage 141struct GNUNET_DHT_ClientResultMessage {
148{
149 /** 142 /**
150 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 143 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT
151 */ 144 */
@@ -184,15 +177,13 @@ struct GNUNET_DHT_ClientResultMessage
184 struct GNUNET_HashCode key GNUNET_PACKED; 177 struct GNUNET_HashCode key GNUNET_PACKED;
185 178
186 /* put path, get path and actual data are copied to end of this dealy do */ 179 /* put path, get path and actual data are copied to end of this dealy do */
187
188}; 180};
189 181
190 182
191/** 183/**
192 * Message to insert data into the DHT, sent from clients to DHT service. 184 * Message to insert data into the DHT, sent from clients to DHT service.
193 */ 185 */
194struct GNUNET_DHT_ClientPutMessage 186struct GNUNET_DHT_ClientPutMessage {
195{
196 /** 187 /**
197 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 188 * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT
198 */ 189 */
@@ -224,15 +215,13 @@ struct GNUNET_DHT_ClientPutMessage
224 struct GNUNET_HashCode key GNUNET_PACKED; 215 struct GNUNET_HashCode key GNUNET_PACKED;
225 216
226 /* DATA copied to end of this message */ 217 /* DATA copied to end of this message */
227
228}; 218};
229 219
230 220
231/** 221/**
232 * Message to monitor put requests going through peer, DHT service -> clients. 222 * Message to monitor put requests going through peer, DHT service -> clients.
233 */ 223 */
234struct GNUNET_DHT_MonitorPutMessage 224struct GNUNET_DHT_MonitorPutMessage {
235{
236 /** 225 /**
237 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT 226 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT
238 */ 227 */
@@ -277,15 +266,13 @@ struct GNUNET_DHT_MonitorPutMessage
277 /* put path (if tracked) */ 266 /* put path (if tracked) */
278 267
279 /* Payload */ 268 /* Payload */
280
281}; 269};
282 270
283 271
284/** 272/**
285 * Message to request monitoring messages, clients -> DHT service. 273 * Message to request monitoring messages, clients -> DHT service.
286 */ 274 */
287struct GNUNET_DHT_MonitorStartStopMessage 275struct GNUNET_DHT_MonitorStartStopMessage {
288{
289 /** 276 /**
290 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_START or 277 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_START or
291 * #GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP 278 * #GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP
@@ -327,8 +314,7 @@ struct GNUNET_DHT_MonitorStartStopMessage
327/** 314/**
328 * Message to monitor get requests going through peer, DHT service -> clients. 315 * Message to monitor get requests going through peer, DHT service -> clients.
329 */ 316 */
330struct GNUNET_DHT_MonitorGetMessage 317struct GNUNET_DHT_MonitorGetMessage {
331{
332 /** 318 /**
333 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET 319 * Type: #GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET
334 */ 320 */
@@ -366,14 +352,12 @@ struct GNUNET_DHT_MonitorGetMessage
366 struct GNUNET_HashCode key GNUNET_PACKED; 352 struct GNUNET_HashCode key GNUNET_PACKED;
367 353
368 /* get path (if tracked) */ 354 /* get path (if tracked) */
369
370}; 355};
371 356
372/** 357/**
373 * Message to monitor get results going through peer, DHT service -> clients. 358 * Message to monitor get results going through peer, DHT service -> clients.
374 */ 359 */
375struct GNUNET_DHT_MonitorGetRespMessage 360struct GNUNET_DHT_MonitorGetRespMessage {
376{
377 /** 361 /**
378 * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 362 * Type: #GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT
379 */ 363 */
@@ -409,7 +393,6 @@ struct GNUNET_DHT_MonitorGetRespMessage
409 /* get path (if tracked) */ 393 /* get path (if tracked) */
410 394
411 /* Payload */ 395 /* Payload */
412
413}; 396};
414 397
415GNUNET_NETWORK_STRUCT_END 398GNUNET_NETWORK_STRUCT_END