Function esp_idf_svc::hal::sys::httpd_ws_get_fd_info

source ยท
pub unsafe extern "C" fn httpd_ws_get_fd_info(
    hd: *mut c_void,
    fd: i32,
) -> u32
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