libcoap 4.3.4-develop-9f1418e
WebSockets Support

API for interfacing with WebSockets (RFC8323) More...

+ Collaboration diagram for WebSockets Support:

Functions

int coap_ws_is_supported (void)
 Check whether WebSockets is available. More...
 
int coap_wss_is_supported (void)
 Check whether Secure WebSockets is available. More...
 
int coap_ws_set_host_request (coap_session_t *session, coap_str_const_t *ws_host)
 Set the host for the HTTP Host: Header in the WebSockets Request. More...
 

Detailed Description

API for interfacing with WebSockets (RFC8323)

Function Documentation

◆ coap_ws_is_supported()

int coap_ws_is_supported ( void  )

Check whether WebSockets is available.

Returns
1 if support for WebSockets is available, or 0 otherwise.

Definition at line 932 of file coap_ws.c.

+ Here is the caller graph for this function:

◆ coap_ws_set_host_request()

int coap_ws_set_host_request ( coap_session_t session,
coap_str_const_t ws_host 
)

Set the host for the HTTP Host: Header in the WebSockets Request.

Returns
1 if successful, else 0 if failure of some sort.

Definition at line 942 of file coap_ws.c.

◆ coap_wss_is_supported()

int coap_wss_is_supported ( void  )

Check whether Secure WebSockets is available.

Returns
1 if support for Secure WebSockets is available, or 0 otherwise.

Definition at line 937 of file coap_ws.c.

+ Here is the caller graph for this function: