Searched refs:subprotocol (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-3.6.0/components/esp_http_server/src/ |
D | httpd_ws.c | 68 static bool httpd_ws_get_response_subprotocol(const char *supported_subprotocol, char *subprotocol,… in httpd_ws_get_response_subprotocol() argument 71 if (strnlen(subprotocol, buf_len) == 0) { in httpd_ws_get_response_subprotocol() 76 …(TAG, "Sec-WebSocket-Protocol %s not supported, URI do not support any subprotocols", subprotocol); in httpd_ws_get_response_subprotocol() 82 char *s = strtok_r(subprotocol, ", ", &rest); in httpd_ws_get_response_subprotocol() 84 if (strncmp(s, supported_subprotocol, sizeof(subprotocol)) == 0) { in httpd_ws_get_response_subprotocol() 90 …Sec-WebSocket-Protocol %s not supported, supported subprotocol is %s", subprotocol, supported_subp… in httpd_ws_get_response_subprotocol() 154 char subprotocol[50] = { '\0' }; in httpd_ws_respond_server_handshake() local 155 …if (httpd_req_get_hdr_value_str(req, "Sec-WebSocket-Protocol", subprotocol, sizeof(subprotocol) - … in httpd_ws_respond_server_handshake() 156 …, "Sec-WebSocket-Protocol length exceeded buffer size of %d, was trunctated", sizeof(subprotocol)); in httpd_ws_respond_server_handshake() 173 … if ( httpd_ws_get_response_subprotocol(supported_subprotocol, subprotocol, sizeof(subprotocol))) { in httpd_ws_respond_server_handshake() [all …]
|
/hal_espressif-3.6.0/docs/en/api-reference/protocols/ |
D | esp_websocket_client.rst | 79 The subprotocol field in the config struct can be used to request a subprotocol 85 .subprotocol = "soap", 88 .. note:: The client is indifferent to the subprotocol field in the server response and will accept… 108 …ent is able to request the use of a subprotocol from the server during the handshake, but does not…
|
/hal_espressif-3.6.0/components/esp_websocket_client/ |
D | esp_websocket_client.c | 84 char *subprotocol; member 217 if (config->subprotocol) { in esp_websocket_client_set_config() 218 free(cfg->subprotocol); in esp_websocket_client_set_config() 219 cfg->subprotocol = strdup(config->subprotocol); in esp_websocket_client_set_config() 220 ESP_WS_CLIENT_MEM_CHECK(TAG, cfg->subprotocol, return ESP_ERR_NO_MEM); in esp_websocket_client_set_config() 272 free(cfg->subprotocol); in esp_websocket_client_destroy_config() 287 .sub_protocol = client->config->subprotocol, in set_websocket_transport_optional_settings()
|
/hal_espressif-3.6.0/components/esp_websocket_client/include/ |
D | esp_websocket_client.h | 92 const char *subprotocol; /*!< Websocket subprotocol */ member
|
/hal_espressif-3.6.0/examples/protocols/http_server/ws_echo_server/ |
D | README.md | 30 .supported_subprotocol = "chat", // Optional: set supported subprotocol for this handler
|