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_peer_t Struct Reference

consensus handoff message is intentionally a small, concrete record. Fields such as kind, generation, sequence, upload_kbps give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. More...

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

Data Fields

uint8_t id [SESSION_ID_SIZE]
uint8_t capabilities
uint8_t nat_tier
uint16_t port
uint8_t pending_capabilities
uint8_t pending_nat_tier
uint16_t pending_port
uint32_t sequence
uint32_t upload_kbps
uint64_t probe_started_ms
uint64_t measured_ms
bool measuring
bool valid
bool rejected

Detailed Description

consensus handoff message is intentionally a small, concrete record. Fields such as kind, generation, sequence, upload_kbps give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed.

Definition at line 47 of file handoff.h.

Field Documentation

◆ capabilities

uint8_t consensus_handoff_peer_t::capabilities

Definition at line 49 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ id

uint8_t consensus_handoff_peer_t::id[SESSION_ID_SIZE]

◆ measured_ms

uint64_t consensus_handoff_peer_t::measured_ms

Definition at line 58 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ measuring

bool consensus_handoff_peer_t::measuring

Definition at line 59 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ nat_tier

uint8_t consensus_handoff_peer_t::nat_tier

◆ pending_capabilities

uint8_t consensus_handoff_peer_t::pending_capabilities

Definition at line 52 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ pending_nat_tier

uint8_t consensus_handoff_peer_t::pending_nat_tier

Definition at line 53 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ pending_port

uint16_t consensus_handoff_peer_t::pending_port

Definition at line 54 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ port

uint16_t consensus_handoff_peer_t::port

Definition at line 51 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ probe_started_ms

uint64_t consensus_handoff_peer_t::probe_started_ms

Definition at line 57 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ rejected

bool consensus_handoff_peer_t::rejected

Definition at line 61 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ sequence

uint32_t consensus_handoff_peer_t::sequence

Definition at line 55 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ upload_kbps

uint32_t consensus_handoff_peer_t::upload_kbps

Definition at line 56 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ valid

bool consensus_handoff_peer_t::valid

Definition at line 60 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().


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