11#ifndef __CWIST_WEBSOCKET_ASYNC_H__
12#define __CWIST_WEBSOCKET_ASYNC_H__
58 const uint8_t *data,
size_t len);
WebSocket upgrade and frame handling.
int cwist_websocket_async_send(cwist_websocket_async *ws, cwist_ws_opcode_t opcode, const uint8_t *data, size_t len)
Serialize and send one FIN-terminated frame without blocking.
struct cwist_websocket_async cwist_websocket_async
void cwist_websocket_async_close(cwist_websocket_async *ws)
Initiate the close handshake without blocking.
void(* cwist_ws_on_message_t)(cwist_websocket_async *ws, cwist_ws_frame *frame, void *user_data)
Callback invoked for each complete WebSocket message on the C1M path.
void(* cwist_ws_on_close_t)(cwist_websocket_async *ws, void *user_data)
Optional teardown hook for the callback-shaped WS path (see cwist_websocket_async_attach_ex in ws_asy...