Home
last modified time | relevance | path

Searched refs:ws_host (Results 1 – 4 of 4) sorted by relevance

/third_party/libcoap/src/
Dcoap_ws.c815 if (!session->ws_host) { in coap_ws_establish()
832 if (strchr((const char *)session->ws_host->s, ':')) { in coap_ws_establish()
834 snprintf(host, sizeof(host), "[%s]:%d", session->ws_host->s, port); in coap_ws_establish()
836 snprintf(host, sizeof(host), "[%s]", session->ws_host->s); in coap_ws_establish()
840 snprintf(host, sizeof(host), "%s:%d", session->ws_host->s, port); in coap_ws_establish()
842 snprintf(host, sizeof(host), "%s", session->ws_host->s); in coap_ws_establish()
922 coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host) { in coap_ws_set_host_request() argument
923 if (!session | !ws_host) in coap_ws_set_host_request()
926 session->ws_host = coap_new_str_const(ws_host->s, ws_host->length); in coap_ws_set_host_request()
927 if (!session->ws_host) in coap_ws_set_host_request()
[all …]
Dcoap_session.c671 coap_delete_str_const(session->ws_host); in coap_session_mfree()
/third_party/libcoap/include/coap3/
Dcoap_ws.h47 int coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host);
Dcoap_session_internal.h198 coap_str_const_t *ws_host; /**< Host to use in WS Request */ member