Function esp_idf_hal::sys::mbedtls_ssl_conf_transport

source ·
pub unsafe extern "C" fn mbedtls_ssl_conf_transport(
    conf: *mut mbedtls_ssl_config,
    transport: i32,
)
Expand description

\brief Set the transport type (TLS or DTLS). Default: TLS

\note For DTLS, you must either provide a recv callback that doesn’t block, or one that handles timeouts, see \c mbedtls_ssl_set_bio(). You also need to provide timer callbacks with \c mbedtls_ssl_set_timer_cb().

\param conf SSL configuration \param transport transport type: MBEDTLS_SSL_TRANSPORT_STREAM for TLS, MBEDTLS_SSL_TRANSPORT_DATAGRAM for DTLS.