pub fn socketpair<T>( domain: AddressFamily, ty: SockType, protocol: T, flags: SockFlag, ) -> Result<(i32, i32), Errno>where T: Into<Option<SockProtocol>>,
Create a pair of connected sockets
Further reading