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

Method do_send

net/kernel_socket.cpp:495–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493 uint32_t m_num_calls = 0;
494
495 ssize_t do_send(int sockfd, const void* buf, size_t count, int flags, Timeout timeout) override {
496 struct iovec iov{const_cast<void*>(buf), count};
497 return do_sendmsg(sockfd, tmp_msg_hdr(&iov, 1), flags, timeout);
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);

Callers

nothing calls this directly

Calls 1

tmp_msg_hdrClass · 0.70

Tested by

no test coverage detected