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

Function accept

src/net/socket.rs:267–269  ·  view source on GitHub ↗
(sockfd: Fd)

Source from the content-addressed store, hash-verified

265/// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Accepting-Connections.html
266#[inline]
267pub fn accept<Fd: AsFd>(sockfd: Fd) -> io::Result<OwnedFd> {
268 backend::net::syscalls::accept(sockfd.as_fd())
269}
270
271/// `accept4(fd, NULL, NULL, flags)`—Accepts an incoming connection, with
272/// flags.

Callers 15

serverFunction · 0.50
do_test_unix_msgFunction · 0.50
test_unix_msg_with_comboFunction · 0.50
serverFunction · 0.50
net_v4_connect_anyFunction · 0.50
net_v6_connect_anyFunction · 0.50
net_v4_connectFunction · 0.50
net_v6_connectFunction · 0.50
net_v4_bind_anyFunction · 0.50
net_v6_bind_anyFunction · 0.50
net_v4_sendtoFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 15

test_unix_msg_with_comboFunction · 0.40
net_v4_connect_anyFunction · 0.40
net_v6_connect_anyFunction · 0.40
net_v4_connectFunction · 0.40
net_v6_connectFunction · 0.40
net_v4_bind_anyFunction · 0.40
net_v6_bind_anyFunction · 0.40
net_v4_sendtoFunction · 0.40
net_v6_sendtoFunction · 0.40
net_v4_sendto_anyFunction · 0.40
net_v6_sendto_anyFunction · 0.40