ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
consensus_topology Struct Reference

Ring topology for consensus participants. More...

Data Fields

uint8_t participant_ids [MAX_SESSION_PARTICIPANTS][SESSION_ID_SIZE]
 Participant UUIDs in sorted order.
int num_participants
 Total number of participants.
int my_position
 My index in the sorted list.

Detailed Description

Ring topology for consensus participants.

Ring topology for consensus participants

Maintains a sorted list of participant IDs for ring-based consensus algorithms and leader election.

Definition at line 22 of file topology.c.

Field Documentation

◆ my_position

int consensus_topology::my_position

◆ num_participants

int consensus_topology::num_participants

◆ participant_ids

uint8_t consensus_topology::participant_ids[MAX_SESSION_PARTICIPANTS][SESSION_ID_SIZE]

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