Structure definition for session. More...

Data Fields | |
| struct ast_sockaddr | address |
| unsigned int | closing:1 |
| FILE * | f |
| int | fd |
| enum ast_websocket_opcode | opcode |
| char * | payload |
| size_t | payload_len |
| size_t | reconstruct |
| unsigned int | secure:1 |
Structure definition for session.
Definition at line 72 of file res_http_websocket.c.
| struct ast_sockaddr address |
Address of the remote client
Definition at line 75 of file res_http_websocket.c.
Referenced by ast_websocket_read(), ast_websocket_remote_address(), session_destroy_fn(), and websocket_callback().
| unsigned int closing |
Bit to indicate that the session is in the process of being closed
Definition at line 81 of file res_http_websocket.c.
Referenced by ast_websocket_close(), ast_websocket_fd(), ast_websocket_read(), and ws_safe_read().
| FILE* f |
Pointer to the file instance used for writing and reading
Definition at line 73 of file res_http_websocket.c.
Referenced by ast_websocket_close(), ast_websocket_read(), ast_websocket_write(), session_destroy_fn(), websocket_callback(), and ws_safe_read().
| int fd |
File descriptor for the session, only used for polling
Definition at line 74 of file res_http_websocket.c.
Referenced by ast_websocket_fd(), ast_websocket_set_nonblock(), websocket_callback(), and ws_safe_read().
Cached opcode for multi-frame messages
Definition at line 76 of file res_http_websocket.c.
Referenced by ast_websocket_read(), and websocket_callback().
| char* payload |
Pointer to the payload
Definition at line 78 of file res_http_websocket.c.
Referenced by ast_websocket_read(), and session_destroy_fn().
| size_t payload_len |
Length of the payload
Definition at line 77 of file res_http_websocket.c.
Referenced by ast_websocket_read().
| size_t reconstruct |
Number of bytes before a reconstructed payload will be returned and a new one started
Definition at line 79 of file res_http_websocket.c.
Referenced by ast_websocket_read(), ast_websocket_reconstruct_disable(), ast_websocket_reconstruct_enable(), and websocket_callback().
| unsigned int secure |
Bit to indicate that the transport is secure
Definition at line 80 of file res_http_websocket.c.
Referenced by ast_websocket_is_secure(), and websocket_callback().