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

Method do_sendmsg

net/kernel_socket.cpp:500–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498 }
499
500 ssize_t do_sendmsg(int sockfd, const struct msghdr* message, int flags, Timeout timeout) override {
501 ssize_t n = photon::net::sendmsg(sockfd, message, flags | ZEROCOPY_FLAG, timeout);
502 m_num_calls++;
503 auto ret = zerocopy_confirm(sockfd, m_num_calls - 1, timeout);
504 if (ret < 0)
505 return ret;
506 return n;
507 }
508};
509
510class ZeroCopySocketServer : public KernelSocketServer {

Callers

nothing calls this directly

Calls 2

sendmsgFunction · 0.85
zerocopy_confirmFunction · 0.85

Tested by

no test coverage detected