Asterisk - The Open Source Telephony Project GIT-master-6144b6b
Loading...
Searching...
No Matches
Data Fields
ast_websocket Struct Reference

Structure definition for session. More...

Collaboration diagram for ast_websocket:
Collaboration graph
[legend]

Data Fields

char buf [AST_WEBSOCKET_MAX_RX_PAYLOAD_SIZE]
 
struct websocket_clientclient
 
unsigned int close_sent:1
 
uint16_t close_status_code
 
enum ws_closed_by closed_by
 
unsigned int closing:1
 
struct ast_sockaddr local_address
 
unsigned int non_blocking:1
 
enum ast_websocket_opcode opcode
 
char * payload
 
size_t payload_len
 
size_t reconstruct
 
struct ast_sockaddr remote_address
 
unsigned int secure:1
 
char session_id [AST_UUID_STR_LEN]
 
struct ast_iostreamstream
 
int timeout
 

Detailed Description

Structure definition for session.

Definition at line 130 of file res_http_websocket.c.

Field Documentation

◆ buf

Fixed buffer for reading data into

Definition at line 147 of file res_http_websocket.c.

Referenced by ws_send_msg().

◆ client

struct websocket_client* client

◆ close_sent

unsigned int close_sent

Bit to indicate that the session close opcode has been sent and no further data will be sent

Definition at line 141 of file res_http_websocket.c.

◆ close_status_code

uint16_t close_status_code

Status code sent in a CLOSE frame upon shutdown

Definition at line 145 of file res_http_websocket.c.

◆ closed_by

enum ws_closed_by closed_by

Who's closing the websocket?

Definition at line 146 of file res_http_websocket.c.

◆ closing

unsigned int closing

Bit to indicate that the session is in the process of being closed

Definition at line 140 of file res_http_websocket.c.

◆ local_address

struct ast_sockaddr local_address

Our local address

Definition at line 133 of file res_http_websocket.c.

◆ non_blocking

unsigned int non_blocking

Bit to indicate that the socket is non-blocking

Definition at line 142 of file res_http_websocket.c.

◆ opcode

enum ast_websocket_opcode opcode

Cached opcode for multi-frame messages

Definition at line 134 of file res_http_websocket.c.

Referenced by ast_websocket_read(), ast_websocket_read_string(), ast_websocket_write(), websocket_client_create(), and ws_safe_read().

◆ payload

char* payload

Pointer to the payload

Definition at line 136 of file res_http_websocket.c.

Referenced by ast_websocket_read(), ast_websocket_read_string(), and ast_websocket_write().

◆ payload_len

size_t payload_len

Length of the payload

Definition at line 135 of file res_http_websocket.c.

Referenced by ast_websocket_read(), and ast_websocket_read_string().

◆ reconstruct

size_t reconstruct

Number of bytes before a reconstructed payload will be returned and a new one started

Definition at line 137 of file res_http_websocket.c.

Referenced by websocket_client_create().

◆ remote_address

struct ast_sockaddr remote_address

Address of the remote client

Definition at line 132 of file res_http_websocket.c.

Referenced by websocket_client_connect().

◆ secure

unsigned int secure

Bit to indicate that the transport is secure

Definition at line 139 of file res_http_websocket.c.

Referenced by websocket_client_connect().

◆ session_id

char session_id[AST_UUID_STR_LEN]

The identifier for the websocket session

Definition at line 144 of file res_http_websocket.c.

Referenced by websocket_client_create().

◆ stream

struct ast_iostream* stream

iostream of the connection

Definition at line 131 of file res_http_websocket.c.

Referenced by ast_websocket_client_create_with_options(), and websocket_client_connect().

◆ timeout

int timeout

The timeout for operations on the socket

Definition at line 138 of file res_http_websocket.c.

Referenced by ast_websocket_set_timeout(), ast_websocket_wait_for_input(), and websocket_client_create().


The documentation for this struct was generated from the following file: