|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
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 | |
Host negotiation context.
Definition at line 40 of file negotiate.h.
| uint8_t negotiate_ctx_t::connection_type |
acip_connection_type_t
Definition at line 59 of file negotiate.h.
Referenced by negotiate_determine_result().
| asciichat_error_t negotiate_ctx_t::error |
Definition at line 53 of file negotiate.h.
Referenced by negotiate_get_error(), and negotiate_start_detection().
| 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().
| 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().
| 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().
| nat_quality_t negotiate_ctx_t::our_quality |
Our NAT quality.
Definition at line 47 of file negotiate.h.
Referenced by discovery_session_process(), negotiate_determine_result(), negotiate_init(), negotiate_receive_peer_quality(), and negotiate_start_detection().
| uint8_t negotiate_ctx_t::participant_id[16] |
Definition at line 43 of file negotiate.h.
Referenced by negotiate_init().
| 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().
| bool negotiate_ctx_t::peer_quality_received |
Have we received peer's quality?
Definition at line 49 of file negotiate.h.
Referenced by discovery_session_process(), negotiate_determine_result(), negotiate_init(), negotiate_receive_peer_quality(), and negotiate_start_detection().
| uint8_t negotiate_ctx_t::session_id[16] |
Definition at line 42 of file negotiate.h.
Referenced by negotiate_init().
| negotiate_state_t negotiate_ctx_t::state |
Definition at line 52 of file negotiate.h.
Referenced by discovery_session_process(), negotiate_determine_result(), negotiate_get_state(), negotiate_init(), negotiate_is_complete(), negotiate_receive_peer_quality(), and negotiate_start_detection().
| 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().