ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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]
 Memorable session string (e.g., "happy-sunset-ocean").
char ipv4_address [256]
 Formatted IPv4 bind address with port.
char ipv6_address [256]
 Formatted IPv6 bind address with port.
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 38 of file status.h.

Field Documentation

◆ connected_count

size_t ui_status_t::connected_count

Number of connected clients/servers.

Definition at line 43 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 48 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 40 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 44 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 41 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 45 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 49 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 42 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 46 of file status.h.

Referenced by ui_status_gather().

◆ session_string

char ui_status_t::session_string[64]

Memorable session string (e.g., "happy-sunset-ocean").

Definition at line 39 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 47 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: