Support for WebSocket connections within the Asterisk HTTP server and client WebSocket connections to a server.
More...
|
static void | __dtor__ast_websocket_add_protocol (void) |
|
static void | __dtor__ast_websocket_add_protocol2 (void) |
|
static void | __dtor__ast_websocket_client_accept_protocol (void) |
|
static void | __dtor__ast_websocket_client_create (void) |
|
static void | __dtor__ast_websocket_close (void) |
|
static void | __dtor__ast_websocket_fd (void) |
|
static void | __dtor__ast_websocket_is_secure (void) |
|
static void | __dtor__ast_websocket_local_address (void) |
|
static void | __dtor__ast_websocket_read (void) |
|
static void | __dtor__ast_websocket_read_string (void) |
|
static void | __dtor__ast_websocket_reconstruct_disable (void) |
|
static void | __dtor__ast_websocket_reconstruct_enable (void) |
|
static void | __dtor__ast_websocket_ref (void) |
|
static void | __dtor__ast_websocket_remote_address (void) |
|
static void | __dtor__ast_websocket_remove_protocol (void) |
|
static void | __dtor__ast_websocket_server_add_protocol (void) |
|
static void | __dtor__ast_websocket_server_add_protocol2 (void) |
|
static void | __dtor__ast_websocket_server_create (void) |
|
static void | __dtor__ast_websocket_server_remove_protocol (void) |
|
static void | __dtor__ast_websocket_session_id (void) |
|
static void | __dtor__ast_websocket_set_nonblock (void) |
|
static void | __dtor__ast_websocket_set_timeout (void) |
|
static void | __dtor__ast_websocket_sub_protocol_alloc (void) |
|
static void | __dtor__ast_websocket_unref (void) |
|
static void | __dtor__ast_websocket_uri_cb (void) |
|
static void | __dtor__ast_websocket_wait_for_input (void) |
|
static void | __dtor__ast_websocket_write (void) |
|
static void | __dtor__ast_websocket_write_string (void) |
|
static void | __init__ast_websocket_add_protocol (void) |
|
static void | __init__ast_websocket_add_protocol2 (void) |
|
static void | __init__ast_websocket_client_accept_protocol (void) |
|
static void | __init__ast_websocket_client_create (void) |
|
static void | __init__ast_websocket_close (void) |
|
static void | __init__ast_websocket_fd (void) |
|
static void | __init__ast_websocket_is_secure (void) |
|
static void | __init__ast_websocket_local_address (void) |
|
static void | __init__ast_websocket_read (void) |
|
static void | __init__ast_websocket_read_string (void) |
|
static void | __init__ast_websocket_reconstruct_disable (void) |
|
static void | __init__ast_websocket_reconstruct_enable (void) |
|
static void | __init__ast_websocket_ref (void) |
|
static void | __init__ast_websocket_remote_address (void) |
|
static void | __init__ast_websocket_remove_protocol (void) |
|
static void | __init__ast_websocket_server_add_protocol (void) |
|
static void | __init__ast_websocket_server_add_protocol2 (void) |
|
static void | __init__ast_websocket_server_create (void) |
|
static void | __init__ast_websocket_server_remove_protocol (void) |
|
static void | __init__ast_websocket_session_id (void) |
|
static void | __init__ast_websocket_set_nonblock (void) |
|
static void | __init__ast_websocket_set_timeout (void) |
|
static void | __init__ast_websocket_sub_protocol_alloc (void) |
|
static void | __init__ast_websocket_unref (void) |
|
static void | __init__ast_websocket_uri_cb (void) |
|
static void | __init__ast_websocket_wait_for_input (void) |
|
static void | __init__ast_websocket_write (void) |
|
static void | __init__ast_websocket_write_string (void) |
|
static int | __stub__ast_websocket_add_protocol (const char *name, ast_websocket_callback callback) |
| Add a sub-protocol handler to the default /ws server. More...
|
|
static int | __stub__ast_websocket_add_protocol2 (struct ast_websocket_protocol *protocol) |
| Add a sub-protocol handler to the default /ws server. More...
|
|
static const char * | __stub__ast_websocket_client_accept_protocol (struct ast_websocket *ws) |
| Retrieve the server accepted sub-protocol on the client. More...
|
|
static struct ast_websocket * | __stub__ast_websocket_client_create (const char *uri, const char *protocols, struct ast_tls_config *tls_cfg, enum ast_websocket_result *result) |
| Create, and connect, a websocket client. More...
|
|
static int | __stub__ast_websocket_close (struct ast_websocket *session, uint16_t reason) |
| Close a WebSocket session by sending a message with the CLOSE opcode and an optional code. More...
|
|
static int | __stub__ast_websocket_fd (struct ast_websocket *session) |
| Get the file descriptor for a WebSocket session. More...
|
|
static int | __stub__ast_websocket_is_secure (struct ast_websocket *session) |
| Get whether the WebSocket session is using a secure transport or not. More...
|
|
static struct ast_sockaddr * | __stub__ast_websocket_local_address (struct ast_websocket *session) |
| Get the local address for a WebSocket connection session. More...
|
|
static int | __stub__ast_websocket_read (struct ast_websocket *session, char **payload, uint64_t *payload_len, enum ast_websocket_opcode *opcode, int *fragmented) |
| Read a WebSocket frame and handle it. More...
|
|
static int | __stub__ast_websocket_read_string (struct ast_websocket *ws, char **buf) |
| Read a WebSocket frame containing string data. More...
|
|
static void | __stub__ast_websocket_reconstruct_disable (struct ast_websocket *session) |
| Disable multi-frame reconstruction. More...
|
|
static void | __stub__ast_websocket_reconstruct_enable (struct ast_websocket *session, size_t bytes) |
| Enable multi-frame reconstruction up to a certain number of bytes. More...
|
|
static void | __stub__ast_websocket_ref (struct ast_websocket *session) |
| Increase the reference count for a WebSocket session. More...
|
|
static struct ast_sockaddr * | __stub__ast_websocket_remote_address (struct ast_websocket *session) |
| Get the remote address for a WebSocket connected session. More...
|
|
static int | __stub__ast_websocket_remove_protocol (const char *name, ast_websocket_callback callback) |
| Remove a sub-protocol handler from the default /ws server. More...
|
|
static int | __stub__ast_websocket_server_add_protocol (struct ast_websocket_server *server, const char *name, ast_websocket_callback callback) |
| Add a sub-protocol handler to the given server. More...
|
|
static int | __stub__ast_websocket_server_add_protocol2 (struct ast_websocket_server *server, struct ast_websocket_protocol *protocol) |
| Add a sub-protocol handler to the given server. More...
|
|
static struct ast_websocket_server * | __stub__ast_websocket_server_create (void) |
| Creates a websocket_server. More...
|
|
static int | __stub__ast_websocket_server_remove_protocol (struct ast_websocket_server *server, const char *name, ast_websocket_callback callback) |
| Remove a sub-protocol handler from the given server. More...
|
|
static const char * | __stub__ast_websocket_session_id (struct ast_websocket *session) |
| Get the session ID for a WebSocket session. More...
|
|
static int | __stub__ast_websocket_set_nonblock (struct ast_websocket *session) |
| Set the socket of a WebSocket session to be non-blocking. More...
|
|
static int | __stub__ast_websocket_set_timeout (struct ast_websocket *session, int timeout) |
| Set the timeout on a non-blocking WebSocket session. More...
|
|
static struct ast_websocket_protocol * | __stub__ast_websocket_sub_protocol_alloc (const char *name) |
| Allocate a websocket sub-protocol instance. More...
|
|
static void | __stub__ast_websocket_unref (struct ast_websocket *session) |
| Decrease the reference count for a WebSocket session. More...
|
|
static int | __stub__ast_websocket_uri_cb (struct ast_tcptls_session_instance *ser, const struct ast_http_uri *urih, const char *uri, enum ast_http_method method, struct ast_variable *get_vars, struct ast_variable *headers) |
| Callback suitable for use with a ast_http_uri. More...
|
|
static int | __stub__ast_websocket_wait_for_input (struct ast_websocket *session, int timeout) |
| Wait for the WebSocket session to be ready to be read. More...
|
|
static int | __stub__ast_websocket_write (struct ast_websocket *session, enum ast_websocket_opcode opcode, char *payload, uint64_t payload_size) |
| Construct and transmit a WebSocket frame. More...
|
|
static int | __stub__ast_websocket_write_string (struct ast_websocket *ws, const char *buf) |
| Construct and transmit a WebSocket frame containing string data. More...
|
|
static | typeof (__stub__ast_websocket_server_create) *ast_websocket_server_create |
|
static | typeof (__stub__ast_websocket_uri_cb) *ast_websocket_uri_cb |
|
static | typeof (__stub__ast_websocket_sub_protocol_alloc) *ast_websocket_sub_protocol_alloc |
|
static | typeof (__stub__ast_websocket_add_protocol) *ast_websocket_add_protocol |
|
static | typeof (__stub__ast_websocket_add_protocol2) *ast_websocket_add_protocol2 |
|
static | typeof (__stub__ast_websocket_remove_protocol) *ast_websocket_remove_protocol |
|
static | typeof (__stub__ast_websocket_server_add_protocol) *ast_websocket_server_add_protocol |
|
static | typeof (__stub__ast_websocket_server_add_protocol2) *ast_websocket_server_add_protocol2 |
|
static | typeof (__stub__ast_websocket_server_remove_protocol) *ast_websocket_server_remove_protocol |
|
static | typeof (__stub__ast_websocket_read) *ast_websocket_read |
|
static | typeof (__stub__ast_websocket_read_string) *ast_websocket_read_string |
|
static | typeof (__stub__ast_websocket_write) *ast_websocket_write |
|
static | typeof (__stub__ast_websocket_write_string) *ast_websocket_write_string |
|
static | typeof (__stub__ast_websocket_close) *ast_websocket_close |
|
static | typeof (__stub__ast_websocket_reconstruct_enable) *ast_websocket_reconstruct_enable |
|
static | typeof (__stub__ast_websocket_reconstruct_disable) *ast_websocket_reconstruct_disable |
|
static | typeof (__stub__ast_websocket_ref) *ast_websocket_ref |
|
static | typeof (__stub__ast_websocket_unref) *ast_websocket_unref |
|
static | typeof (__stub__ast_websocket_fd) *ast_websocket_fd |
|
static | typeof (__stub__ast_websocket_wait_for_input) *ast_websocket_wait_for_input |
|
static | typeof (__stub__ast_websocket_remote_address) *ast_websocket_remote_address |
|
static | typeof (__stub__ast_websocket_local_address) *ast_websocket_local_address |
|
static | typeof (__stub__ast_websocket_is_secure) *ast_websocket_is_secure |
|
static | typeof (__stub__ast_websocket_set_nonblock) *ast_websocket_set_nonblock |
|
static | typeof (__stub__ast_websocket_session_id) *ast_websocket_session_id |
|
static | typeof (__stub__ast_websocket_client_create) *ast_websocket_client_create |
|
static | typeof (__stub__ast_websocket_client_accept_protocol) *ast_websocket_client_accept_protocol |
|
static | typeof (__stub__ast_websocket_set_timeout) *ast_websocket_set_timeout |
|
Support for WebSocket connections within the Asterisk HTTP server and client WebSocket connections to a server.
Supported WebSocket versions in server implementation: Version 7 defined in specification http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07 Version 8 defined in specification http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10 Version 13 defined in specification http://tools.ietf.org/html/rfc6455 Supported WebSocket versions in client implementation: Version 13 defined in specification http://tools.ietf.org/html/rfc6455
- Author
- Joshua Colp jcolp.nosp@m.@dig.nosp@m.ium.c.nosp@m.om
Definition in file http_websocket.h.