ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
include/ascii-chat/network/acip/server.h
Go to the documentation of this file.
17
18#ifndef NETWORK_ACIP_SERVER_H
19#define NETWORK_ACIP_SERVER_H
21
26
27#ifdef __cplusplus
28extern "C" {
29
30#endif
31
32// =============================================================================
33// Server Receive API
34// =============================================================================
35
49 const acip_server_callbacks_t *callbacks);
50
51// =============================================================================
52// Server Send API (server → client)
53// =============================================================================
54
76
78 const char *frame_data, size_t frame_size, uint32_t width, uint32_t height,
79 const char *client_id);
80
82 const char *text, size_t length, uint32_t width, uint32_t height,
83 const acip_render_settings_t *settings, uint32_t effects,
84 const char *client_id);
85
95
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif // NETWORK_ACIP_SERVER_H
Synchronized per-thread pending error stacks and value snapshots. SET_ERRNO pushes,...
📦 Network Packet Compression Utilities
unsigned int height
Definition fft.c:23
unsigned int width
Definition fft.c:23
unsigned int uint32_t
Definition common.h:62
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:44
struct acip_transport acip_transport_t
Forward declaration of ACIP transport.
Definition host.h:506
ACIP protocol packet handlers (transport-agnostic).
asciichat_error_t acip_send_server_state(acip_transport_t *transport, const server_state_packet_t *state)
Send server state update to client (server → client).
asciichat_error_t acip_server_receive_and_dispatch(acip_transport_t *transport, void *client_ctx, const acip_server_callbacks_t *callbacks)
Receive packet from client and dispatch to callbacks.
asciichat_error_t acip_send_ascii_frame(acip_transport_t *transport, acip_frame_workspace_t *workspace, const char *frame_data, size_t frame_size, uint32_t width, uint32_t height, const char *client_id)
asciichat_error_t acip_send_clear_console(acip_transport_t *transport)
Send clear console command to client (server → client).
asciichat_error_t acip_send_ascii_frame_contract(acip_transport_t *transport, acip_frame_workspace_t *workspace, const char *text, size_t length, uint32_t width, uint32_t height, const acip_render_settings_t *settings, uint32_t effects, const char *client_id)
void acip_frame_workspace_destroy(acip_frame_workspace_t *workspace)
Transport abstraction layer for ACIP protocol.
Send ASCII frame to client (server → client).
acip render settings keeps the values that move through the subsystem: caps, width,...
Server-side packet handler callbacks.
Definition handlers.h:144
Owns the temporary storage used by compression workspace. The data pointers and size or cursor fields...
Server state packet structure.
Definition packet.h:746