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

Host negotiation context. More...

#include <src/discovery/negotiate.h>

Data Fields

uint8_t session_id [SESSION_ID_SIZE]
uint8_t participant_id [SESSION_ID_SIZE]
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 44 of file negotiate.h.

Field Documentation

◆ connection_type

uint8_t negotiate_ctx_t::connection_type

acip_connection_type_t

Definition at line 63 of file negotiate.h.

Referenced by negotiate_determine_result().

◆ error

asciichat_error_t negotiate_ctx_t::error

Definition at line 57 of file negotiate.h.

◆ host_address

char negotiate_ctx_t::host_address[64]

Host's address (ours if we_are_host).

Definition at line 61 of file negotiate.h.

Referenced by negotiate_determine_result().

◆ host_port

uint16_t negotiate_ctx_t::host_port

Host's port.

Definition at line 62 of file negotiate.h.

Referenced by negotiate_determine_result().

◆ is_initiator

bool negotiate_ctx_t::is_initiator

Did we create this session?

Definition at line 48 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ our_quality

nat_quality_t negotiate_ctx_t::our_quality

Our NAT quality.

Definition at line 51 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ participant_id

uint8_t negotiate_ctx_t::participant_id[SESSION_ID_SIZE]

Definition at line 47 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 52 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ peer_quality_received

bool negotiate_ctx_t::peer_quality_received

Have we received peer's quality?

Definition at line 53 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ session_id

uint8_t negotiate_ctx_t::session_id[SESSION_ID_SIZE]

Definition at line 46 of file negotiate.h.

Referenced by negotiate_init().

◆ state

negotiate_state_t negotiate_ctx_t::state

Definition at line 56 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().

◆ we_are_host

bool negotiate_ctx_t::we_are_host

True if we should become host.

Definition at line 60 of file negotiate.h.

Referenced by negotiate_determine_result(), and negotiate_init().


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