MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / socketpair

Function socketpair

src/net/socketpair.rs:29–36  ·  view source on GitHub ↗
(
    domain: AddressFamily,
    type_: SocketType,
    flags: SocketFlags,
    protocol: Option<Protocol>,
)

Source from the content-addressed store, hash-verified

27/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Socket-Pairs.html
28#[inline]
29pub 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}

Callers 4

test_preadv2_nowaitFunction · 0.50
test_unix_peercredFunction · 0.50

Calls

no outgoing calls

Tested by 4

test_preadv2_nowaitFunction · 0.40
test_unix_peercredFunction · 0.40