|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Ring topology for consensus participants. More...
Data Fields | |
| uint8_t | participant_ids [64][16] |
| Participant UUIDs in sorted order. | |
| int | num_participants |
| Total number of participants. | |
| int | my_position |
| My index in the sorted list. | |
Ring topology for consensus participants.
Maintains a sorted list of participant IDs for ring-based consensus algorithms and leader election.
Definition at line 17 of file topology.c.
| int consensus_topology::my_position |
My index in the sorted list.
Definition at line 20 of file topology.c.
Referenced by consensus_topology_am_leader(), consensus_topology_create(), consensus_topology_get_next(), consensus_topology_get_position(), and consensus_topology_get_prev().
| int consensus_topology::num_participants |
Total number of participants.
Definition at line 19 of file topology.c.
Referenced by consensus_topology_am_leader(), consensus_topology_create(), consensus_topology_get_all(), consensus_topology_get_leader(), consensus_topology_get_next(), and consensus_topology_get_prev().
| uint8_t consensus_topology::participant_ids[64][16] |
Participant UUIDs in sorted order.
Definition at line 18 of file topology.c.
Referenced by consensus_topology_create(), consensus_topology_get_all(), consensus_topology_get_leader(), consensus_topology_get_next(), and consensus_topology_get_prev().