Lines Matching defs:ws_host
815 if (!session->ws_host) {
832 if (strchr((const char *)session->ws_host->s, ':')) {
834 snprintf(host, sizeof(host), "[%s]:%d", session->ws_host->s, port);
836 snprintf(host, sizeof(host), "[%s]", session->ws_host->s);
840 snprintf(host, sizeof(host), "%s:%d", session->ws_host->s, port);
842 snprintf(host, sizeof(host), "%s", session->ws_host->s);
922 coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host) {
923 if (!session | !ws_host)
926 session->ws_host = coap_new_str_const(ws_host->s, ws_host->length);
927 if (!session->ws_host)
945 coap_ws_set_host_request(coap_session_t *session, coap_str_const_t *ws_host) {
947 (void)ws_host;