Function esp_idf_sys::httpd_ws_get_fd_info
source ยท pub unsafe extern "C" fn httpd_ws_get_fd_info(
hd: httpd_handle_t,
fd: c_int,
) -> httpd_ws_client_info_t
Expand description
@brief Checks the supplied socket descriptor if it belongs to any active client of this server instance and if the websoket protocol is active
@param[in] hd Server instance data @param[in] fd Socket descriptor @return
- HTTPD_WS_CLIENT_INVALID : This fd is not a client of this httpd
- HTTPD_WS_CLIENT_HTTP : This fd is an active client, protocol is not WS
- HTTPD_WS_CLIENT_WEBSOCKET : This fd is an active client, protocol is WS