(
domain: AddressFamily,
type_: SocketType,
flags: SocketFlags,
protocol: Option<Protocol>,
)
| 27 | /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Socket-Pairs.html |
| 28 | #[inline] |
| 29 | pub fn socketpair( |
| 30 | domain: AddressFamily, |
| 31 | type_: SocketType, |
| 32 | flags: SocketFlags, |
| 33 | protocol: Option<Protocol>, |
| 34 | ) -> io::Result<(OwnedFd, OwnedFd)> { |
| 35 | backend::net::syscalls::socketpair(domain, type_, flags, protocol) |
| 36 | } |
no outgoing calls