64 socket_t client_socket,
const char *operation_name);
asciichat_error_t error_code
bool check_and_record_rate_limit(rate_limiter_t *rate_limiter, const char *client_ip, rate_event_type_t event_type, socket_t client_socket, const char *operation_name)
Check rate limit and send error if exceeded.
asciichat_error_t send_error_packet(socket_t sockfd, asciichat_error_t error_code)
Send an ACIP error packet using asciichat_error_t.
bool check_and_record_packet_rate_limit(rate_limiter_t *rate_limiter, const char *client_ip, socket_t client_socket, packet_type_t packet_type)
Map packet type to rate event type and check rate limit.
asciichat_error_t send_error_packet_message(socket_t sockfd, asciichat_error_t error_code, const char *message)
Send an ACIP error packet with custom message.
asciichat_error_t
Error and exit codes - unified status values (0-255)
packet_type_t
Network protocol packet type enumeration.
ASCII-Chat Discovery Service (ACDS) Protocol Message Formats.
🚦 Rate limiting API with pluggable backends
rate_event_type_t
Rate limit event types.
Cross-platform socket interface for ascii-chat.