Lines Matching refs:iov
138 struct iovec iov; in sendOnInterface() local
141 iov.iov_base = const_cast<uint8_t*>(message.data()); in sendOnInterface()
142 iov.iov_len = message.size(); in sendOnInterface()
145 header.msg_iov = &iov; in sendOnInterface()
202 struct iovec iov[3]; in sendRawUdp() local
204 iov[0].iov_base = static_cast<void*>(&ip); in sendRawUdp()
205 iov[0].iov_len = sizeof(ip); in sendRawUdp()
206 iov[1].iov_base = static_cast<void*>(&udp); in sendRawUdp()
207 iov[1].iov_len = sizeof(udp); in sendRawUdp()
209 iov[2].iov_base = static_cast<void*>(const_cast<uint8_t*>(message.data())); in sendRawUdp()
210 iov[2].iov_len = message.size(); in sendRawUdp()
224 header.msg_iov = iov; in sendRawUdp()
225 header.msg_iovlen = sizeof(iov) / sizeof(iov[0]); in sendRawUdp()
239 struct iovec iov; in receiveFromInterface() local
240 iov.iov_base = message->data(); in receiveFromInterface()
241 iov.iov_len = message->capacity(); in receiveFromInterface()
242 header.msg_iov = &iov; in receiveFromInterface()
273 struct iovec iov[3]; in receiveRawUdp() local
274 iov[0].iov_base = &ip; in receiveRawUdp()
275 iov[0].iov_len = sizeof(ip); in receiveRawUdp()
276 iov[1].iov_base = &udp; in receiveRawUdp()
277 iov[1].iov_len = sizeof(udp); in receiveRawUdp()
278 iov[2].iov_base = message->data(); in receiveRawUdp()
279 iov[2].iov_len = message->capacity(); in receiveRawUdp()
281 ssize_t bytesRead = ::readv(mSocketFd, iov, 3); in receiveRawUdp()