Searched refs:fmt_len (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.6.0/components/esp_http_server/src/ |
D | httpd_ws.c | 162 int fmt_len = snprintf(tx_buf, sizeof(tx_buf), in httpd_ws_respond_server_handshake() local 168 if (fmt_len < 0 || fmt_len > sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() 175 …int r = snprintf(tx_buf + fmt_len, sizeof(tx_buf) - fmt_len, "Sec-WebSocket-Protocol: %s\r\n", sup… in httpd_ws_respond_server_handshake() 182 fmt_len += r; in httpd_ws_respond_server_handshake() 184 if (fmt_len >= sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() 186 …f subprotocol returned %d, desired response len: %d, buffer size: %d", r, fmt_len, sizeof(tx_buf)); in httpd_ws_respond_server_handshake() 191 int r = snprintf(tx_buf + fmt_len, sizeof(tx_buf) - fmt_len, "\r\n"); in httpd_ws_respond_server_handshake() 197 fmt_len += r; in httpd_ws_respond_server_handshake() 198 if (fmt_len >= sizeof(tx_buf)) { in httpd_ws_respond_server_handshake() 200 …ader terminal returned %d, desired response len: %d, buffer size: %d", r, fmt_len, sizeof(tx_buf)); in httpd_ws_respond_server_handshake() [all …]
|