41static inline bool acip_is_media_packet(
uint16_t type) {
52static inline bool acip_is_control_packet(
uint16_t type) {
65static inline bool acip_is_crypto_packet(
uint16_t type) {
66 return packet_is_handshake_type(type);
75static inline bool acip_is_message_packet(
uint16_t type) {
93static inline size_t acip_get_min_packet_size(
uint16_t type) {
@ PACKET_TYPE_ACIP_WEBRTC_ICE
WebRTC ICE candidate (bidirectional)
@ PACKET_TYPE_AUDIO_OPUS_BATCH
Batched Opus-encoded audio frames.
@ PACKET_TYPE_AUDIO_OPUS
Opus-encoded single audio frame.
@ PACKET_TYPE_CLIENT_LEAVE
Clean disconnect notification.
@ PACKET_TYPE_ACIP_SESSION_INFO
Session info response (Discovery Server -> Client)
@ PACKET_TYPE_IMAGE_FRAME
Complete RGB image with dimensions.
@ PACKET_TYPE_TEXT_MESSAGE
Text message.
@ PACKET_TYPE_AUDIO_MESSAGE
Audio message.
@ PACKET_TYPE_PONG
Keepalive pong response.
@ PACKET_TYPE_STREAM_START
Client requests to start sending video/audio.
@ PACKET_TYPE_ACIP_ERROR
Generic error response (Discovery Server -> Client)
@ PACKET_TYPE_AUDIO
Single audio packet (legacy)
@ PACKET_TYPE_SERVER_STATE
Server sends current state to clients.
@ PACKET_TYPE_SIZE_MESSAGE
Terminal size message.
@ PACKET_TYPE_REMOTE_LOG
Bidirectional remote logging packet.
@ PACKET_TYPE_PROTOCOL_VERSION
Protocol version and capabilities negotiation.
@ PACKET_TYPE_CLEAR_CONSOLE
Server tells client to clear console.
@ PACKET_TYPE_ACIP_SESSION_CREATE
Create new session (Client -> Discovery Server)
@ PACKET_TYPE_ASCII_FRAME
Complete ASCII frame with all metadata.
@ PACKET_TYPE_ACIP_SESSION_LOOKUP
Lookup session by string (Client -> Discovery Server)
@ PACKET_TYPE_ACIP_WEBRTC_SDP
WebRTC SDP offer/answer (bidirectional)
@ PACKET_TYPE_ACIP_SESSION_JOIN
Join existing session (Client -> Discovery Server)
@ PACKET_TYPE_ACIP_SESSION_CREATED
Session created response (Discovery Server -> Client)
@ PACKET_TYPE_CLIENT_JOIN
Client announces capability to send media.
@ PACKET_TYPE_CLIENT_CAPABILITIES
Client reports terminal capabilities.
@ PACKET_TYPE_ERROR_MESSAGE
Error packet with asciichat_error_t code and human-readable message.
@ PACKET_TYPE_PING
Keepalive ping packet.
@ PACKET_TYPE_AUDIO_BATCH
Batched audio packets for efficiency.
@ PACKET_TYPE_ACIP_SESSION_JOINED
Session joined response (Discovery Server -> Client)
@ PACKET_TYPE_STREAM_STOP
Client stops sending media.
const char * acip_packet_type_name(uint16_t type)
Get human-readable name for packet type.
ASCII-Chat Discovery Service (ACDS) Protocol Message Formats.
Packet protocol implementation with encryption and compression support.
ASCII frame packet structure (Packet Type 2)
Audio batch packet structure (Packet Type 28)
Error packet structure carrying error code and textual description.
Image frame packet structure (Packet Type 3)
Protocol version negotiation packet structure (Packet Type 1)
Remote log packet structure carrying log level and message text.
Server state packet structure.