devela::_dep::rustix::net

Function socketpair

pub fn socketpair(
    domain: AddressFamily,
    type_: SocketType,
    flags: SocketFlags,
    protocol: Option<Protocol>,
) -> Result<(OwnedFd, OwnedFd), Errno> 
Available on crate feature dep_rustix only.
Expand description

socketpair(domain, type_ | accept_flags, protocol)—Create a pair of sockets that are connected to each other.

§References