MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / do_accept

Method do_accept

net/kernel_socket.cpp:984–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982 }
983
984 int do_accept(struct sockaddr* addr, socklen_t* addrlen) override {
985 uint64_t timeout = -1;
986 return (int) etdoio(LAMBDA(::accept4(m_listen_fd, addr, addrlen, SOCK_NONBLOCK)),
987 LAMBDA_TIMEOUT(wait_for_readable(timeout)));
988 }
989};
990
991#endif // __linux__

Callers

nothing calls this directly

Calls 2

etdoioFunction · 0.85
wait_for_readableFunction · 0.85

Tested by

no test coverage detected