GNUnet  0.10.x
set.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2012-2014 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
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/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
26 #ifndef SET_H
27 #define SET_H
28 
29 #include "platform.h"
30 #include "gnunet_common.h"
31 #include "gnunet_set_service.h"
32 
34 
45 
50 };
51 
52 
63 
68 
73 };
74 
75 
85 
89  uint32_t accept_reject_id GNUNET_PACKED;
90 
94  uint32_t request_id GNUNET_PACKED;
95 
100  uint32_t result_mode GNUNET_PACKED;
101 
106  uint8_t force_delta;
107 
112  uint8_t force_full;
113 
118  uint8_t byzantine;
119 
125 };
126 
127 
137 
141  uint32_t accept_reject_id GNUNET_PACKED;
142 };
143 
144 
153 
158  uint32_t accept_id GNUNET_PACKED;
159 
164 
165  /* rest: context message, that is, application-specific
166  message to convince listener to pick up */
167 };
168 
169 
180 
185  uint32_t result_mode GNUNET_PACKED;
186 
191 
195  struct GNUNET_HashCode app_id;
196 
201  uint32_t request_id GNUNET_PACKED;
202 
207  uint8_t force_delta;
208 
213  uint8_t force_full;
214 
219  uint8_t byzantine;
220 
226 
227  /* rest: context message, that is, application-specific
228  message to convince listener to pick up */
229 };
230 
231 
243 
247  uint64_t current_size;
248 
252  uint32_t request_id GNUNET_PACKED;
253 
258  uint16_t result_status GNUNET_PACKED;
259 
263  uint16_t element_type GNUNET_PACKED;
264 
265  /* rest: the actual element */
266 };
267 
268 
279 
283  uint16_t element_type GNUNET_PACKED;
284 
289 
290  /* rest: the actual element */
291 };
292 
293 
303 
307  uint32_t request_id GNUNET_PACKED;
308 };
309 
310 
320 
325  uint16_t iteration_id GNUNET_PACKED;
326 
331  uint16_t element_type GNUNET_PACKED;
332 
333  /* rest: element */
334 };
335 
336 
345 
349  uint32_t send_more;
350 };
351 
352 
361 
365  uint32_t cookie;
366 };
367 
368 
377 
381  uint32_t cookie;
382 };
383 
384 
386 
387 #endif
Message sent by the service to the client to indicate an element that is removed (set intersection) o...
Definition: set.h:238
uint8_t force_full
Always send full sets, even if delta operations would be more efficient.
Definition: set.h:112
uint8_t force_delta
Always use delta operation instead of sending full sets, even it it&#39;s less efficient.
Definition: set.h:106
A request for an operation with another client.
Definition: set.h:148
static char * peer_id
Option –peer.
Definition: gnunet-cadet.c:42
Set element transmitted by service to client in response to a set iteration request.
Definition: set.h:315
static struct GNUNET_HashCode app_id
uint8_t byzantine_lower_bound
Lower bound for the set size, used only when byzantine mode is enabled.
Definition: set.h:124
uint8_t force_full
Always send full sets, even if delta operations would be more efficient.
Definition: set.h:213
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
uint64_t current_size
Current set size.
Definition: set.h:247
Message sent by the client to the service to ask starting a new set to perform operations with...
Definition: set.h:40
Message sent by the client to the service to start listening for incoming requests to perform a certa...
Definition: set.h:58
uint8_t force_delta
Always use delta operation instead of sending full sets, even it it&#39;s less efficient.
Definition: set.h:207
uint32_t operation
Operation type, values of enum GNUNET_SET_OperationType
Definition: set.h:49
A 512-bit hashcode.
Client connects to a lazily copied set.
Definition: set.h:372
uint8_t byzantine
GNUNET_YES to fail operations where Byzantine faults are suspected
Definition: set.h:219
uint8_t byzantine_lower_bound
Lower bound for the set size, used only when byzantine mode is enabled.
Definition: set.h:225
Sent to the service by the client in order to cancel a set operation.
Definition: set.h:298
Message sent by client to service to initiate a set operation as a client (not as listener)...
Definition: set.h:175
Client acknowledges receiving element in iteration.
Definition: set.h:340
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_CREATE.
Definition: set.h:44
static struct GNUNET_PeerIdentity * target_peer
ID of the targeted peer.
uint32_t cookie
Temporary name for the copied set.
Definition: set.h:381
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
The identity of the host (wraps the signing key of the peer).
#define GNUNET_PACKED
gcc-ism to get packed structs.
Server responds to a lazy copy request.
Definition: set.h:356
Message sent by client to the service to add or remove an element to/from the set.
Definition: set.h:273
uint8_t byzantine
GNUNET_YES to fail operations where Byzantine faults are suspected
Definition: set.h:118
uint32_t cookie
Temporary name for the copied set.
Definition: set.h:365
Header for all communications.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
static unsigned long long reserved
How much space have we currently reserved?
Message sent by a listening client to the service to reject performing the operation with the other p...
Definition: set.h:132
Message sent by a listening client to the service to accept performing the operation with the other p...
Definition: set.h:80
uint32_t send_more
Non-zero if the service should continue sending elements.
Definition: set.h:349