devela::_dep::rustix::net::sockopt

Function get_socket_protocol

pub fn get_socket_protocol<Fd>(fd: Fd) -> Result<Option<Protocol>, Errno> 
where Fd: AsFd,
Available on crate feature dep_rustix only.
Expand description

getsockopt(fd, SOL_SOCKET, SO_PROTOCOL)

See the module-level documentation for more.