Function esp_idf_svc::sys::httpd_sess_set_transport_ctx
source · pub unsafe extern "C" fn httpd_sess_set_transport_ctx(
handle: *mut c_void,
sockfd: i32,
ctx: *mut c_void,
free_fn: Option<unsafe extern "C" fn(_: *mut c_void)>,
)
Expand description
@brief Set session ‘transport’ context by socket descriptor @see httpd_sess_set_ctx()
@param[in] handle Handle to server returned by httpd_start @param[in] sockfd The socket descriptor for which the context should be extracted. @param[in] ctx Transport context object to assign to the session @param[in] free_fn Function that should be called to free the transport context