nix::sys::socket

Function socketpair

Source
pub fn socketpair<T: Into<Option<SockProtocol>>>(
    domain: AddressFamily,
    ty: SockType,
    protocol: T,
    flags: SockFlag,
) -> Result<(RawFd, RawFd)>
Expand description

Create a pair of connected sockets

Further reading