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

Method recv

net/kernel_socket.cpp:118–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 return DOIO_LOOP(do_sendmsg(fd, tmp_msg_hdr(view), MSG_NOSIGNAL, timeout), BufStepV(view));
117 }
118 ssize_t recv(void* buf, size_t count, int flags = 0) override {
119 return do_recv(fd, buf, count, flags, m_timeout);
120 }
121 ssize_t recv(const iovec* iov, int iovcnt, int flags = 0) override {
122 return do_recvmsg(fd, tmp_msg_hdr(iov, iovcnt), flags, m_timeout);
123 }

Callers

nothing calls this directly

Calls 1

tmp_msg_hdrClass · 0.70

Tested by

no test coverage detected