Lines Matching refs:header

136     struct msghdr header;  in sendOnInterface()  local
137 memset(&header, 0, sizeof(header)); in sendOnInterface()
143 header.msg_name = &addr; in sendOnInterface()
144 header.msg_namelen = sizeof(addr); in sendOnInterface()
145 header.msg_iov = &iov; in sendOnInterface()
146 header.msg_iovlen = 1; in sendOnInterface()
147 header.msg_control = &controlData; in sendOnInterface()
148 header.msg_controllen = sizeof(controlData); in sendOnInterface()
150 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&header); in sendOnInterface()
159 ssize_t status = ::sendmsg(mSocketFd, &header, 0); in sendOnInterface()
220 struct msghdr header; in sendRawUdp() local
221 memset(&header, 0, sizeof(header)); in sendRawUdp()
222 header.msg_name = &dest; in sendRawUdp()
223 header.msg_namelen = sizeof(dest); in sendRawUdp()
224 header.msg_iov = iov; in sendRawUdp()
225 header.msg_iovlen = sizeof(iov) / sizeof(iov[0]); in sendRawUdp()
227 ssize_t res = ::sendmsg(mSocketFd, &header, 0); in sendRawUdp()
237 struct msghdr header; in receiveFromInterface() local
238 memset(&header, 0, sizeof(header)); in receiveFromInterface()
242 header.msg_iov = &iov; in receiveFromInterface()
243 header.msg_iovlen = 1; in receiveFromInterface()
244 header.msg_control = &controlData; in receiveFromInterface()
245 header.msg_controllen = sizeof(controlData); in receiveFromInterface()
247 ssize_t bytesRead = ::recvmsg(mSocketFd, &header, 0); in receiveFromInterface()
252 if (header.msg_controllen >= sizeof(struct cmsghdr)) { in receiveFromInterface()
253 for (struct cmsghdr* ctrl = CMSG_FIRSTHDR(&header); in receiveFromInterface()
255 ctrl = CMSG_NXTHDR(&header, ctrl)) { in receiveFromInterface()