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

Function recv

net/basic_socket.cpp:180–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180ssize_t recv(int fd, void* buf, size_t count, int flags, Timeout timeout) {
181 return DOIO_ONCE(::recv(fd, buf, count, flags), wait_for_fd_readable(fd, timeout));
182}
183
184ssize_t recvmsg(int fd, struct msghdr* msg, int flags, Timeout timeout) {
185 return DOIO_ONCE(::recvmsg(fd, msg, flags), wait_for_fd_readable(fd, timeout));

Callers 15

do_recvMethod · 0.85
recvMethod · 0.85
recv_at_leastMethod · 0.85
recv_at_least_mutableMethod · 0.85
recvfromMethod · 0.85
recvMethod · 0.85
readMethod · 0.85
readvMethod · 0.85
recvMethod · 0.85
readMethod · 0.85
recvMethod · 0.85
recvMethod · 0.85

Calls 1

wait_for_fd_readableFunction · 0.50

Tested by 1

recvMethod · 0.68