Function esp_idf_hal::sys::httpd_get_client_list

source ยท
pub unsafe extern "C" fn httpd_get_client_list(
    handle: *mut c_void,
    fds: *mut usize,
    client_fds: *mut i32,
) -> i32
Expand description

@brief Returns list of current socket descriptors of active sessions

@param[in] handle Handle to server returned by httpd_start @param[in,out] fds In: Size of provided client_fds array Out: Number of valid client fds returned in client_fds, @param[out] client_fds Array of client fds

@note Size of provided array has to be equal or greater then maximum number of opened sockets, configured upon initialization with max_open_sockets field in httpd_config_t structure.

@return

  • ESP_OK : Successfully retrieved session list
  • ESP_ERR_INVALID_ARG : Wrong arguments or list is longer than provided array