GNUnet 0.21.1
GNUNET_CONSENSUS_Handle Struct Reference

Handle for the service. More...

Collaboration diagram for GNUNET_CONSENSUS_Handle:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration to use. More...
 
GNUNET_CONSENSUS_ElementCallback new_element_cb
 Callback for new elements. More...
 
void * new_element_cls
 Closure for new_element_cb. More...
 
struct GNUNET_HashCode session_id
 The (local) session identifier for the consensus session. More...
 
int joined
 GNUNET_YES iff the join message has been sent to the service. More...
 
GNUNET_CONSENSUS_ConcludeCallback conclude_cb
 Called when the conclude operation finishes or fails. More...
 
void * conclude_cls
 Closure for the conclude_cb callback. More...
 
struct GNUNET_TIME_Absolute conclude_deadline
 Deadline for the conclude operation. More...
 
struct GNUNET_MQ_Handlemq
 Message queue for the client. More...
 

Detailed Description

Handle for the service.

Definition at line 39 of file consensus_api.c.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_CONSENSUS_Handle::cfg

Configuration to use.

Definition at line 44 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_create().

◆ new_element_cb

GNUNET_CONSENSUS_ElementCallback GNUNET_CONSENSUS_Handle::new_element_cb

Callback for new elements.

Not called for elements added locally.

Definition at line 49 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_create(), and handle_new_element().

◆ new_element_cls

void* GNUNET_CONSENSUS_Handle::new_element_cls

Closure for new_element_cb.

Definition at line 54 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_create(), and handle_new_element().

◆ session_id

struct GNUNET_HashCode GNUNET_CONSENSUS_Handle::session_id

The (local) session identifier for the consensus session.

Definition at line 59 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_create().

◆ joined

int GNUNET_CONSENSUS_Handle::joined

GNUNET_YES iff the join message has been sent to the service.

Definition at line 64 of file consensus_api.c.

◆ conclude_cb

GNUNET_CONSENSUS_ConcludeCallback GNUNET_CONSENSUS_Handle::conclude_cb

Called when the conclude operation finishes or fails.

Definition at line 69 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_conclude(), and handle_conclude_done().

◆ conclude_cls

void* GNUNET_CONSENSUS_Handle::conclude_cls

Closure for the conclude_cb callback.

Definition at line 74 of file consensus_api.c.

Referenced by GNUNET_CONSENSUS_conclude(), and handle_conclude_done().

◆ conclude_deadline

struct GNUNET_TIME_Absolute GNUNET_CONSENSUS_Handle::conclude_deadline

Deadline for the conclude operation.

Definition at line 79 of file consensus_api.c.

◆ mq

struct GNUNET_MQ_Handle* GNUNET_CONSENSUS_Handle::mq

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