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

Function st_sendmsg

thread/st.cpp:375–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375int st_sendmsg(st_netfd_t fd, const struct msghdr *msg, int flags, st_utime_t timeout) {
376 return DOIO_ONCE(::sendmsg(getfd(fd), msg, flags | MSG_DONTWAIT | MSG_NOSIGNAL),
377 photon::wait_for_fd_writable(getfd(fd), timeout));
378}
379
380st_netfd_t st_open(const char *path, int oflags, mode_t mode) {
381 int fd = ::open(path, oflags, mode);

Callers 1

st_sendtoFunction · 0.85

Calls 3

sendmsgFunction · 0.85
getfdFunction · 0.85
wait_for_fd_writableFunction · 0.50

Tested by

no test coverage detected