Type Alias esp_idf_sys::httpd_open_func_t

source ·
pub type httpd_open_func_t = Option<unsafe extern "C" fn(hd: httpd_handle_t, sockfd: c_int) -> esp_err_t>;
Expand description

@brief Function prototype for opening a session.

Called immediately after the socket was opened to set up the send/recv functions and other parameters of the socket.

@param[in] hd server instance @param[in] sockfd session socket file descriptor @return

  • ESP_OK : On success
  • Any value other than ESP_OK will signal the server to close the socket immediately

Aliased Type§

enum httpd_open_func_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: i32) -> i32)

Some value of type T.