Go to the documentation of this file.
3 #ifndef __ZMQ_WS_ENGINE_HPP_INCLUDED__
4 #define __ZMQ_WS_ENGINE_HPP_INCLUDED__
12 #define WS_BUFFER_SIZE 8192
13 #define MAX_HEADER_NAME_LENGTH 1024
14 #define MAX_HEADER_VALUE_LENGTH 2048
char _websocket_protocol[256]
int process_command_message(msg_t *msg_)
int routing_id_msg(msg_t *msg_)
@ client_handshake_end_line_cr
@ response_line_status_101
int close_connection_after_close(msg_t *msg_)
ws_client_handshake_state_t
@ request_line_HTTP_slash_1
@ client_header_field_value
@ response_line_HTTP_slash_1
@ client_handshake_initial
@ client_header_field_colon
ws_server_handshake_state_t _server_handshake_state
@ response_line_protocols
@ request_line_HTTP_slash_1_dot
int produce_no_msg_after_close(msg_t *msg_)
@ header_field_value_trailing_space
bool select_protocol(const char *protocol)
int produce_close_message(msg_t *msg_)
@ request_line_HTTP_slash_1_dot_1
int _header_value_position
int _header_name_position
char _header_value[MAX_HEADER_VALUE_LENGTH+1]
ws_server_handshake_state_t
int process_routing_id_msg(msg_t *msg_)
bool _header_connection_upgrade
char _websocket_key[MAX_HEADER_VALUE_LENGTH+1]
@ client_header_field_value_trailing_space
unsigned char _read_buffer[WS_BUFFER_SIZE]
int produce_ping_message(msg_t *msg_)
@ response_line_switching
ws_client_handshake_state_t _client_handshake_state
unsigned char _write_buffer[WS_BUFFER_SIZE]
@ response_line_HTTP_slash
char _websocket_accept[MAX_HEADER_VALUE_LENGTH+1]
#define MAX_HEADER_NAME_LENGTH
@ response_line_HTTP_slash_1_dot_1_space
#define MAX_HEADER_VALUE_LENGTH
@ response_line_switching_space
@ response_line_HTTP_slash_1_dot
@ request_line_HTTP_slash
bool _header_upgrade_websocket
@ response_line_status_10
int produce_pong_message(msg_t *msg_)
void start_ws_handshake()
int decode_and_push(msg_t *msg_)
char _header_name[MAX_HEADER_NAME_LENGTH+1]
@ response_line_status_101_space
@ client_header_field_name
@ client_header_field_begin_name
@ response_line_HTTP_slash_1_dot_1
@ header_field_begin_name
@ request_line_resource_space
ws_engine_t(fd_t fd_, const options_t &options_, const endpoint_uri_pair_t &endpoint_uri_pair_, const ws_address_t &address_, bool client_)
@ client_handshake_complete
DebugStringOptions options_
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:02