rustix::net

Function socketpair

source
pub fn socketpair(
    domain: AddressFamily,
    type_: SocketType,
    flags: SocketFlags,
    protocol: Option<Protocol>,
) -> Result<(OwnedFd, OwnedFd)>
Expand description

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

§References