ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
negotiate_ctx_t Struct Reference

Host negotiation context. More...

#include <src/discovery/negotiate.h>

Data Fields

uint8_t session_id [16]
 
uint8_t participant_id [16]
 
bool is_initiator
 Did we create this session?
 
nat_quality_t our_quality
 Our NAT quality.
 
nat_quality_t peer_quality
 Peer's NAT quality (when received)
 
bool peer_quality_received
 Have we received peer's quality?
 
negotiate_state_t state
 
asciichat_error_t error
 
bool we_are_host
 True if we should become host.
 
char host_address [64]
 Host's address (ours if we_are_host)
 
uint16_t host_port
 Host's port.
 
uint8_t connection_type
 acip_connection_type_t
 

Detailed Description

Host negotiation context.

Definition at line 40 of file negotiate.h.

Field Documentation

◆ connection_type

uint8_t negotiate_ctx_t::connection_type

acip_connection_type_t

Definition at line 59 of file negotiate.h.

Referenced by negotiate_determine_result().

◆ error

asciichat_error_t negotiate_ctx_t::error

Definition at line 53 of file negotiate.h.

Referenced by negotiate_get_error(), and negotiate_start_detection().

◆ host_address

char negotiate_ctx_t::host_address[64]

Host's address (ours if we_are_host)

Definition at line 57 of file negotiate.h.

Referenced by discovery_session_process(), and negotiate_determine_result().

◆ host_port

uint16_t negotiate_ctx_t::host_port

Host's port.

Definition at line 58 of file negotiate.h.

Referenced by discovery_session_process(), and negotiate_determine_result().

◆ is_initiator

bool negotiate_ctx_t::is_initiator

Did we create this session?

Definition at line 44 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ our_quality

nat_quality_t negotiate_ctx_t::our_quality

◆ participant_id

uint8_t negotiate_ctx_t::participant_id[16]

Definition at line 43 of file negotiate.h.

Referenced by negotiate_init().

◆ peer_quality

nat_quality_t negotiate_ctx_t::peer_quality

Peer's NAT quality (when received)

Definition at line 48 of file negotiate.h.

Referenced by discovery_session_process(), negotiate_determine_result(), negotiate_init(), and negotiate_receive_peer_quality().

◆ peer_quality_received

bool negotiate_ctx_t::peer_quality_received

◆ session_id

uint8_t negotiate_ctx_t::session_id[16]

Definition at line 42 of file negotiate.h.

Referenced by negotiate_init().

◆ state

◆ we_are_host

bool negotiate_ctx_t::we_are_host

True if we should become host.

Definition at line 56 of file negotiate.h.

Referenced by discovery_session_process(), negotiate_determine_result(), and negotiate_init().


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