|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
Server status screen display with live log feed at FPS rate. More...
Go to the source code of this file.
Functions | |
| void | server_status_log_init (void) |
| void | server_status_log_destroy (void) |
| void | server_status_log_clear (void) |
| void | server_status_log_append (const char *message) |
| asciichat_error_t | server_status_gather (tcp_server_t *server, const char *session_string, const char *ipv4_address, const char *ipv6_address, uint16_t port, time_t start_time, const char *mode_name, bool session_is_mdns_only, server_status_t *out_status) |
| void | server_status_display (const server_status_t *status) |
| bool | server_status_display_interactive (const server_status_t *status) |
| Display status screen with keyboard input support Returns true if status screen should continue, false if Escape was pressed to exit. | |
| void | server_status_update (tcp_server_t *server, const char *session_string, const char *ipv4_address, const char *ipv6_address, uint16_t port, time_t start_time, const char *mode_name, bool session_is_mdns_only, uint64_t *last_update_ns) |
Server status screen display with live log feed at FPS rate.
Definition in file server_status.c.
| void server_status_display | ( | const server_status_t * | status | ) |
Definition at line 237 of file server_status.c.
References grep_get_last_pattern(), interactive_grep_enter_mode(), terminal_is_interactive(), and terminal_screen_render().
Referenced by server_status_update().
| bool server_status_display_interactive | ( | const server_status_t * | status | ) |
Display status screen with keyboard input support Returns true if status screen should continue, false if Escape was pressed to exit.
Definition at line 271 of file server_status.c.
References grep_get_last_pattern(), interactive_grep_enter_mode(), interactive_grep_exit_mode(), interactive_grep_handle_key(), interactive_grep_is_active(), interactive_grep_should_handle(), terminal_is_interactive(), and terminal_screen_render().
| asciichat_error_t server_status_gather | ( | tcp_server_t * | server, |
| const char * | session_string, | ||
| const char * | ipv4_address, | ||
| const char * | ipv6_address, | ||
| uint16_t | port, | ||
| time_t | start_time, | ||
| const char * | mode_name, | ||
| bool | session_is_mdns_only, | ||
| server_status_t * | out_status | ||
| ) |
Definition at line 49 of file server_status.c.
References tcp_server_get_client_count().
Referenced by server_status_update().
| void server_status_log_append | ( | const char * | message | ) |
Definition at line 40 of file server_status.c.
References session_log_buffer_append().
| void server_status_log_clear | ( | void | ) |
Definition at line 35 of file server_status.c.
References session_log_buffer_clear().
Referenced by server_main().
| void server_status_log_destroy | ( | void | ) |
Definition at line 30 of file server_status.c.
References session_log_buffer_destroy().
Referenced by server_main().
| void server_status_log_init | ( | void | ) |
Definition at line 25 of file server_status.c.
References session_log_buffer_init().
Referenced by server_main().
| void server_status_update | ( | tcp_server_t * | server, |
| const char * | session_string, | ||
| const char * | ipv4_address, | ||
| const char * | ipv6_address, | ||
| uint16_t | port, | ||
| time_t | start_time, | ||
| const char * | mode_name, | ||
| bool | session_is_mdns_only, | ||
| uint64_t * | last_update_ns | ||
| ) |
Definition at line 328 of file server_status.c.
References platform_get_monotonic_time_us(), server_status_display(), and server_status_gather().