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_status_t Struct Reference

Status information for server/discovery service modes. More...

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

Data Fields

char session_string [64]
 (e.g., "happy-sunset-ocean")
char ipv4_address [256]
char ipv6_address [256]
uint16_t port
 TCP listen port.
size_t connected_count
 Number of connected clients/servers.
bool ipv4_bound
 Whether IPv4 socket is bound.
bool ipv6_bound
 Whether IPv6 socket is bound.
bool session_is_mdns_only
 Whether session is mDNS-only or ACDS.
time_t start_time
 Server start time (for uptime calculation).
const char * detail
 Optional client controls in the address row.
const char * mode_name
 Mode name (e.g., "Server", "Discovery Service").

Detailed Description

Status information for server/discovery service modes.

Status information for server/discovery service modes

Contains all data needed to display the status screen.

Definition at line 43 of file status.h.

Field Documentation

◆ connected_count

size_t ui_status_t::connected_count

Number of connected clients/servers.

Definition at line 54 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ detail

const char* ui_status_t::detail

Optional client controls in the address row.

Definition at line 59 of file status.h.

Referenced by ui_status_display(), ui_status_display_interactive(), and ui_status_render_header().

◆ ipv4_address

char ui_status_t::ipv4_address[256]

Formatted IPv4 bind address with port

Definition at line 47 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ ipv4_bound

bool ui_status_t::ipv4_bound

Whether IPv4 socket is bound.

Definition at line 55 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ ipv6_address

char ui_status_t::ipv6_address[256]

Formatted IPv6 bind address with port

Definition at line 50 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ ipv6_bound

bool ui_status_t::ipv6_bound

Whether IPv6 socket is bound.

Definition at line 56 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ mode_name

const char* ui_status_t::mode_name

Mode name (e.g., "Server", "Discovery Service").

Definition at line 60 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ port

uint16_t ui_status_t::port

TCP listen port.

Definition at line 53 of file status.h.

Referenced by ui_status_gather().

◆ session_is_mdns_only

bool ui_status_t::session_is_mdns_only

Whether session is mDNS-only or ACDS.

Definition at line 57 of file status.h.

Referenced by ui_status_gather().

◆ session_string

char ui_status_t::session_string[64]

(e.g., "happy-sunset-ocean")

Memorable session string

Definition at line 44 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().

◆ start_time

time_t ui_status_t::start_time

Server start time (for uptime calculation).

Definition at line 58 of file status.h.

Referenced by ui_status_gather(), and ui_status_render_header().


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