commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
The identity of the host (wraps the signing key of the peer).
Message sent by a listening client to the service to accept performing the operation with the other p...
uint8_t byzantine_lower_bound
Lower bound for the set size, used only when byzantine mode is enabled.
uint8_t force_full
Always send full sets, even if delta operations would be more efficient.
uint8_t force_delta
Always use delta operation instead of sending full sets, even it it's less efficient.
uint32_t result_mode
How should results be sent to us? See enum GNUNET_SET_ResultMode.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_ACCEPT.
uint32_t request_id
Request ID to identify responses.
uint8_t byzantine
GNUNET_YES to fail operations where Byzantine faults are suspected
uint32_t accept_reject_id
ID of the incoming request we want to accept.
Sent to the service by the client in order to cancel a set operation.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_CANCEL.
uint32_t request_id
ID of the request we want to cancel.
Client connects to a lazily copied set.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT.
uint32_t cookie
Temporary name for the copied set.
Server responds to a lazy copy request.
uint32_t cookie
Temporary name for the copied set.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE.
Message sent by the client to the service to ask starting a new set to perform operations with.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_CREATE.
uint32_t operation
Operation type, values of enum GNUNET_SET_OperationType
Message sent by client to the service to add or remove an element to/from the set.
uint16_t element_type
Type of the element to add or remove.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_ADD or GNUNET_MESSAGE_TYPE_SET_REMOVE.
uint16_t reserved
For alignment, always zero.
Message sent by client to service to initiate a set operation as a client (not as listener).
uint8_t byzantine_lower_bound
Lower bound for the set size, used only when byzantine mode is enabled.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_EVALUATE.
uint32_t request_id
Id of our set to evaluate, chosen implicitly by the client when it calls GNUNET_SET_commit().
uint32_t result_mode
How should results be sent to us? See enum GNUNET_SET_ResultMode.
uint8_t force_full
Always send full sets, even if delta operations would be more efficient.
struct GNUNET_HashCode app_id
Application id.
struct GNUNET_PeerIdentity target_peer
Peer to evaluate the operation with.
uint8_t force_delta
Always use delta operation instead of sending full sets, even it it's less efficient.
uint8_t byzantine
GNUNET_YES to fail operations where Byzantine faults are suspected
Client acknowledges receiving element in iteration.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_ITER_ACK.
uint32_t send_more
Non-zero if the service should continue sending elements.
Set element transmitted by service to client in response to a set iteration request.
uint16_t iteration_id
To which set iteration does this response belong to? First iteration (per client) has counter zero.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT.
uint16_t element_type
Type of the element attached to the message, if any.
Message sent by the client to the service to start listening for incoming requests to perform a certa...
struct GNUNET_HashCode app_id
application id
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_LISTEN.
uint32_t operation
Operation type, values of enum GNUNET_SET_OperationType
Message sent by a listening client to the service to reject performing the operation with the other p...
uint32_t accept_reject_id
ID of the incoming request we want to reject.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_REJECT.
A request for an operation with another client.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_REQUEST.
struct GNUNET_PeerIdentity peer_id
Identity of the requesting peer.
uint32_t accept_id
ID of the to identify the request when accepting or rejecting it.
Message sent by the service to the client to indicate an element that is removed (set intersection) o...
uint32_t request_id
id the result belongs to
uint16_t result_status
Was the evaluation successful? Contains an enum GNUNET_SET_Status in NBO.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SET_RESULT.
uint16_t element_type
Type of the element attached to the message, if any.
uint64_t current_size
Current set size.