Function esp_idf_sys::esp_transport_ws_poll_connection_closed
source ยท pub unsafe extern "C" fn esp_transport_ws_poll_connection_closed(
t: esp_transport_handle_t,
timeout_ms: c_int,
) -> c_int
Expand description
@brief Polls the active connection for termination
This API is typically used by the client to wait for clean connection closure by websocket server
@param t Websocket transport handle @param[in] timeout_ms The timeout milliseconds
@return 0 - no activity on read and error socket descriptor within timeout 1 - Success: either connection terminated by FIN or the most common RST err codes -1 - Failure: Unexpected error code or socket is normally readable