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

Function sendv

net/basic_socket.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188ssize_t sendv(int fd, const struct iovec *iov, int iovcnt, int flag, Timeout timeout) {
189 msghdr msg = {};
190 msg.msg_iov = (struct iovec*)iov;
191 msg.msg_iovlen = iovcnt;
192 return DOIO_ONCE(::sendmsg(fd, &msg, flag | MSG_NOSIGNAL),
193 wait_for_fd_writable(fd, timeout));
194}
195
196ssize_t send_n(int fd, const void *buf, size_t count, int flag, Timeout timeout) {
197 return DOIO_LOOP(send(fd, buf, count, flag, timeout), BufStep((void*&)buf, count));

Callers 2

sendv_nFunction · 0.85
writevFunction · 0.85

Calls 2

sendmsgFunction · 0.85
wait_for_fd_writableFunction · 0.50

Tested by

no test coverage detected