| 182 | } |
| 183 | |
| 184 | struct tmp_msg_hdr : public ::msghdr { |
| 185 | tmp_msg_hdr(const iovec* iov, int iovcnt) : ::msghdr{} { |
| 186 | this->msg_iov = (iovec*) iov; |
| 187 | this->msg_iovlen = iovcnt; |
| 188 | } |
| 189 | |
| 190 | explicit tmp_msg_hdr(iovector_view& view) : |
| 191 | tmp_msg_hdr(view.iov, view.iovcnt) { } |
| 192 | |
| 193 | operator ::msghdr*() { return this; } |
| 194 | }; |
| 195 | }; |
| 196 | |
| 197 | class KernelSocketClient : public SocketClientBase { |