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

Method writev

net/kernel_socket.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 return DOIO_LOOP(do_send(fd, buf, count, MSG_NOSIGNAL, timeout), BufStep((void*&)buf, count));
111 }
112 ssize_t writev(const iovec* iov, int iovcnt) override {
113 SmartCloneIOV<8> clone(iov, iovcnt);
114 iovector_view view(clone.ptr, iovcnt);
115 Timeout timeout(m_timeout);
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 }

Callers

nothing calls this directly

Calls 2

tmp_msg_hdrClass · 0.70
BufStepVClass · 0.70

Tested by

no test coverage detected