ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
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 53 of file handoff.h.

Field Documentation

◆ capabilities

uint8_t consensus_handoff_peer_t::capabilities

Definition at line 55 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 64 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ measuring

bool consensus_handoff_peer_t::measuring

Definition at line 65 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 58 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ pending_nat_tier

uint8_t consensus_handoff_peer_t::pending_nat_tier

Definition at line 59 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ pending_port

uint16_t consensus_handoff_peer_t::pending_port

Definition at line 60 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ port

uint16_t consensus_handoff_peer_t::port

Definition at line 57 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 63 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ rejected

bool consensus_handoff_peer_t::rejected

Definition at line 67 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ sequence

uint32_t consensus_handoff_peer_t::sequence

Definition at line 61 of file handoff.h.

Referenced by consensus_handoff_receive().

◆ upload_kbps

uint32_t consensus_handoff_peer_t::upload_kbps

Definition at line 62 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().

◆ valid

bool consensus_handoff_peer_t::valid

Definition at line 66 of file handoff.h.

Referenced by consensus_handoff_receive(), and consensus_handoff_tick().


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