| 216 | } |
| 217 | |
| 218 | inline int |
| 219 | UnixSocket::send(void const *buf, int size, int flags) const |
| 220 | { |
| 221 | int r; |
| 222 | do { |
| 223 | if (unlikely((r = ::send(this->fd, static_cast<char const *>(buf), size, flags)) < 0)) { |
| 224 | r = -errno; |
| 225 | } |
| 226 | } while (r == -EINTR); |
| 227 | return r; |
| 228 | } |
| 229 | |
| 230 | inline int |
| 231 | UnixSocket::sendto(void const *buf, int len, int flags, struct sockaddr const *to, int tolen) const |