Function esp_idf_svc::hal::sys::httpd_sess_trigger_close
source ยท pub unsafe extern "C" fn httpd_sess_trigger_close(
handle: *mut c_void,
sockfd: i32,
) -> i32
Expand description
@brief Trigger an httpd session close externally
@note Calling this API is only required in special circumstances wherein some application requires to close an httpd client session asynchronously.
@param[in] handle Handle to server returned by httpd_start @param[in] sockfd The socket descriptor of the session to be closed
@return
- ESP_OK : On successfully initiating closure
- ESP_FAIL : Failure to queue work
- ESP_ERR_NOT_FOUND : Socket fd not found
- ESP_ERR_INVALID_ARG : Null arguments