MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / writeData

Method writeData

src/socket/SocketAttr.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 bool SocketAttr::writeData(const iovec *iov, const int iovcnt) {
157 if (::writev(_fd, iov, iovcnt) == -1) {
158 if (errno != EBADF) {
159 PERROR("writev");
160 }
161 return false;
162 }
163 return true;
164 }
165
166 bool SocketAttr::sendDataTo(const void *buf, std::size_t len, int flags) {
167 if (::sendto(_fd, buf, len, flags, reinterpret_cast<sockaddr *>(&_addr),

Callers 1

writeHttpDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected