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

Method do_recv

net/kernel_socket.cpp:928–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926 }
927
928 ssize_t do_recv(int sockfd, void* buf, size_t count, int flags, Timeout timeout) override {
929 return etdoio(LAMBDA(::read(sockfd, buf, count)),
930 LAMBDA_TIMEOUT(wait_for_readable(timeout)));
931 }
932
933 ssize_t do_recvmsg(int sockfd, struct msghdr* message, int flags, Timeout timeout) override {
934 return etdoio(LAMBDA(::recvmsg(sockfd, message, flags)),

Callers

nothing calls this directly

Calls 3

etdoioFunction · 0.85
readFunction · 0.85
wait_for_readableFunction · 0.85

Tested by

no test coverage detected