ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
ui_reconnect_view_t Struct Reference

#include <include/ascii-chat/tui/reconnect.h>

Data Fields

const char * target
const char * transport
const char * encryption
const char * handshake
const char * protocol
const char * last_error
uint32_t attempt
uint32_t attempts
uint32_t retry_seconds
bool can_cancel
 The host can cancel from this view.
bool can_retry
 The host can immediately start the next attempt.
bool connected_before
bool use_colors

Detailed Description

Host-provided connection facts for the reconnect view. The values are deliberately descriptive rather than another connection-state enum: native and browser callers can pass their existing transport and handshake state.

Definition at line 21 of file reconnect.h.

Field Documentation

◆ attempt

uint32_t ui_reconnect_view_t::attempt

Definition at line 28 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), and ui_reconnect_render().

◆ attempts

uint32_t ui_reconnect_view_t::attempts

Definition at line 29 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), and ui_reconnect_render().

◆ can_cancel

bool ui_reconnect_view_t::can_cancel

The host can cancel from this view.

Definition at line 31 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), and ui_reconnect_render().

◆ can_retry

bool ui_reconnect_view_t::can_retry

The host can immediately start the next attempt.

Definition at line 32 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), ui_reconnect_render(), and ui_session_input().

◆ connected_before

bool ui_reconnect_view_t::connected_before

Definition at line 33 of file reconnect.h.

Referenced by ui_reconnect_controller_set().

◆ encryption

const char* ui_reconnect_view_t::encryption

◆ handshake

const char* ui_reconnect_view_t::handshake

◆ last_error

const char* ui_reconnect_view_t::last_error

◆ protocol

const char* ui_reconnect_view_t::protocol

◆ retry_seconds

uint32_t ui_reconnect_view_t::retry_seconds

Definition at line 30 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), and ui_reconnect_render().

◆ target

const char* ui_reconnect_view_t::target

◆ transport

const char* ui_reconnect_view_t::transport

◆ use_colors

bool ui_reconnect_view_t::use_colors

Definition at line 34 of file reconnect.h.

Referenced by ui_reconnect_controller_set(), and ui_reconnect_render().


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