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

Method readv

net/kernel_socket.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 return DOIO_LOOP(do_recv(fd, buf, count, 0, timeout), BufStep(buf, count));
101 }
102 ssize_t readv(const iovec* iov, int iovcnt) override {
103 SmartCloneIOV<8> clone(iov, iovcnt);
104 iovector_view view(clone.ptr, iovcnt);
105 Timeout timeout(m_timeout);
106 return DOIO_LOOP(do_recvmsg(fd, tmp_msg_hdr(view), 0, timeout), BufStepV(view));
107 }
108 ssize_t write(const void* buf, size_t count) override {
109 Timeout timeout(m_timeout);
110 return DOIO_LOOP(do_send(fd, buf, count, MSG_NOSIGNAL, timeout), BufStep((void*&)buf, count));

Callers

nothing calls this directly

Calls 2

tmp_msg_hdrClass · 0.70
BufStepVClass · 0.70

Tested by

no test coverage detected