Function esp_idf_sys::httpd_sess_trigger_close

source ยท
pub unsafe extern "C" fn httpd_sess_trigger_close(
    handle: httpd_handle_t,
    sockfd: c_int,
) -> esp_err_t
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