setup_ulp

Function setup_ulp 

Source
pub fn setup_ulp<S: AsFd>(socket: &S) -> Result<()>
Expand description

Sets the TLS Upper Layer Protocol (ULP).

This should be called before performing any I/O operations on the socket.

ยงErrors

The caller may check if the error is due to the running kernel not supporting kTLS (e.g., kernel module tls not being enabled or the kernel version being too old) with Error::is_ktls_unsupported.