GNUnet  0.11.x
Data Fields
Operation Struct Reference

Operation context used to execute a set operation. More...

#include </home/handbook/gnunet/src/set/gnunet-service-set.h>

Collaboration diagram for Operation:
[legend]

Data Fields

struct Operationnext
 Kept in a DLL of the listener, if listener is non-NULL. More...
 
struct Operationprev
 Kept in a DLL of the listener, if listener is non-NULL. More...
 
struct GNUNET_CADET_Channelchannel
 Channel to the peer. More...
 
struct Listenerlistener
 Port this operation runs on. More...
 
struct GNUNET_MQ_Handlemq
 Message queue for the channel. More...
 
struct GNUNET_MessageHeadercontext_msg
 Context message, may be NULL. More...
 
struct Setset
 Set associated with the operation, NULL until the spec has been associated with a set. More...
 
struct OperationStatestate
 Operation-specific operation state. More...
 
struct GNUNET_PeerIdentity peer
 The identity of the requesting peer. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Timeout task, if the incoming peer has not been accepted after the timeout, it will be disconnected. More...
 
uint32_t salt
 Salt to use for the operation. More...
 
uint32_t remote_element_count
 Remote peers element count. More...
 
uint32_t client_request_id
 ID used to identify an operation between service and client. More...
 
enum GNUNET_SET_ResultMode result_mode
 When are elements sent to the client, and which elements are sent? More...
 
int force_delta
 Always use delta operation instead of sending full sets, even it it's less efficient. More...
 
int force_full
 Always send full sets, even if delta operations would be more efficient. More...
 
int byzantine
 GNUNET_YES to fail operations where Byzantine faults are suspected More...
 
int byzantine_lower_bound
 Lower bound for the set size, used only when byzantine mode is enabled. More...
 
uint32_t suggest_id
 Unique request id for the request from a remote peer, sent to the client, which will accept or reject the request. More...
 
unsigned int generation_created
 Generation in which the operation handle was created. More...
 

Detailed Description

Operation context used to execute a set operation.

Definition at line 314 of file gnunet-service-set.h.

Field Documentation

◆ next

struct Operation* Operation::next

Kept in a DLL of the listener, if listener is non-NULL.

Definition at line 319 of file gnunet-service-set.h.

Referenced by handle_client_cancel().

◆ prev

struct Operation* Operation::prev

Kept in a DLL of the listener, if listener is non-NULL.

Definition at line 324 of file gnunet-service-set.h.

◆ channel

struct GNUNET_CADET_Channel* Operation::channel

◆ listener

struct Listener* Operation::listener

◆ mq

struct GNUNET_MQ_Handle* Operation::mq

◆ context_msg

struct GNUNET_MessageHeader* Operation::context_msg

Context message, may be NULL.

Definition at line 344 of file gnunet-service-set.h.

Referenced by _GSS_operation_destroy(), and handle_incoming_msg().

◆ set

struct Set* Operation::set

◆ state

struct OperationState* Operation::state

◆ peer

struct GNUNET_PeerIdentity Operation::peer

The identity of the requesting peer.

Needs to be stored here as the op spec might not have been created yet.

Definition at line 363 of file gnunet-service-set.h.

Referenced by channel_new_cb(), client_disconnect_cb(), handle_client_evaluate(), and handle_incoming_msg().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* Operation::timeout_task

Timeout task, if the incoming peer has not been accepted after the timeout, it will be disconnected.

Definition at line 369 of file gnunet-service-set.h.

Referenced by channel_new_cb(), handle_incoming_msg(), incoming_destroy(), and incoming_timeout_cb().

◆ salt

uint32_t Operation::salt

Salt to use for the operation.

Definition at line 374 of file gnunet-service-set.h.

Referenced by channel_new_cb(), and handle_client_evaluate().

◆ remote_element_count

uint32_t Operation::remote_element_count

◆ client_request_id

uint32_t Operation::client_request_id

◆ result_mode

enum GNUNET_SET_ResultMode Operation::result_mode

◆ force_delta

int Operation::force_delta

Always use delta operation instead of sending full sets, even it it's less efficient.

Definition at line 395 of file gnunet-service-set.h.

Referenced by handle_client_accept(), and handle_client_evaluate().

◆ force_full

int Operation::force_full

Always send full sets, even if delta operations would be more efficient.

Definition at line 401 of file gnunet-service-set.h.

Referenced by handle_client_accept(), handle_client_evaluate(), and handle_union_p2p_strata_estimator().

◆ byzantine

int Operation::byzantine

GNUNET_YES to fail operations where Byzantine faults are suspected

Definition at line 407 of file gnunet-service-set.h.

Referenced by handle_client_accept(), handle_client_evaluate(), handle_union_p2p_full_element(), and handle_union_p2p_strata_estimator().

◆ byzantine_lower_bound

int Operation::byzantine_lower_bound

Lower bound for the set size, used only when byzantine mode is enabled.

Definition at line 413 of file gnunet-service-set.h.

Referenced by handle_client_accept(), and handle_client_evaluate().

◆ suggest_id

uint32_t Operation::suggest_id

Unique request id for the request from a remote peer, sent to the client, which will accept or reject the request.

Set to '0' iff the request has not been suggested yet.

Definition at line 420 of file gnunet-service-set.h.

Referenced by check_incoming_msg(), and handle_incoming_msg().

◆ generation_created

unsigned int Operation::generation_created

Generation in which the operation handle was created.

Definition at line 426 of file gnunet-service-set.h.

Referenced by _GSS_is_element_of_operation(), handle_client_accept(), and handle_client_evaluate().


The documentation for this struct was generated from the following file: