Function esp_idf_svc::sys::httpd_sess_get_transport_ctx
source · pub unsafe extern "C" fn httpd_sess_get_transport_ctx(
handle: *mut c_void,
sockfd: i32,
) -> *mut c_void
Expand description
@brief Get session ‘transport’ context by socket descriptor @see httpd_sess_get_ctx()
This context is used by the send/receive functions, for example to manage SSL context.
@param[in] handle Handle to server returned by httpd_start @param[in] sockfd The socket descriptor for which the context should be extracted. @return
- void* : Pointer to the transport context associated with this session
- NULL : Empty context / Invalid handle / Invalid socket fd