ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
consensus_handoff_t Struct Reference

#include <include/ascii-chat/network/consensus/handoff.h>

Data Fields

uint8_t session [SESSION_ID_SIZE]
uint8_t host [SESSION_ID_SIZE]
uint8_t successor [SESSION_ID_SIZE]
uint32_t generation
uint32_t round
uint32_t host_sequence
 Last committed round; preparation does not change host authority.
uint64_t prepare_deadline_ms
bool ready
bool host_lost
bool failure_announced
uint64_t failure_deadline_ms
uint64_t monitoring_started_ms
bool monitoring
consensus_handoff_peer_t peers [MAX_SESSION_PARTICIPANTS]
size_t count

Detailed Description

Definition at line 66 of file handoff.h.

Field Documentation

◆ count

size_t consensus_handoff_t::count

◆ failure_announced

bool consensus_handoff_t::failure_announced

Definition at line 76 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ failure_deadline_ms

uint64_t consensus_handoff_t::failure_deadline_ms

Definition at line 77 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ generation

◆ host

◆ host_lost

bool consensus_handoff_t::host_lost

◆ host_sequence

uint32_t consensus_handoff_t::host_sequence

Last committed round; preparation does not change host authority.

Definition at line 72 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ monitoring

bool consensus_handoff_t::monitoring

Definition at line 79 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ monitoring_started_ms

uint64_t consensus_handoff_t::monitoring_started_ms

Definition at line 78 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ peers

◆ prepare_deadline_ms

uint64_t consensus_handoff_t::prepare_deadline_ms

Definition at line 73 of file handoff.h.

Referenced by consensus_handoff_tick().

◆ ready

bool consensus_handoff_t::ready

◆ round

uint32_t consensus_handoff_t::round

Definition at line 71 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ session

uint8_t consensus_handoff_t::session[SESSION_ID_SIZE]

◆ successor

uint8_t consensus_handoff_t::successor[SESSION_ID_SIZE]

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