ascii-chat 0.11.33
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/ui/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 * mode_name
 Mode name (e.g., "Server", "Discovery Service")
 

Detailed Description

Status information for server/discovery service modes.

Contains all data needed to display the status screen.

Definition at line 30 of file status.h.

Field Documentation

◆ connected_count

size_t ui_status_t::connected_count

Number of connected clients/servers.

Definition at line 35 of file status.h.

Referenced by ui_status_gather().

◆ ipv4_address

char ui_status_t::ipv4_address[256]

Formatted IPv4 bind address with port.

Definition at line 32 of file status.h.

Referenced by ui_status_gather().

◆ ipv4_bound

bool ui_status_t::ipv4_bound

Whether IPv4 socket is bound.

Definition at line 36 of file status.h.

Referenced by ui_status_gather().

◆ ipv6_address

char ui_status_t::ipv6_address[256]

Formatted IPv6 bind address with port.

Definition at line 33 of file status.h.

Referenced by ui_status_gather().

◆ ipv6_bound

bool ui_status_t::ipv6_bound

Whether IPv6 socket is bound.

Definition at line 37 of file status.h.

Referenced by ui_status_gather().

◆ mode_name

const char* ui_status_t::mode_name

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

Definition at line 40 of file status.h.

Referenced by ui_status_gather().

◆ port

uint16_t ui_status_t::port

TCP listen port.

Definition at line 34 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 38 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 31 of file status.h.

Referenced by ui_status_gather().

◆ start_time

time_t ui_status_t::start_time

Server start time (for uptime calculation)

Definition at line 39 of file status.h.

Referenced by ui_status_gather().


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