Function esp_idf_sys::httpd_sess_get_transport_ctx
source · pub unsafe extern "C" fn httpd_sess_get_transport_ctx(
handle: httpd_handle_t,
sockfd: c_int,
) -> *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