Lines Matching refs:h
221 struct msghdr h; in uv__udp_recvmsg() local
251 memset(&h, 0, sizeof(h)); in uv__udp_recvmsg()
253 h.msg_name = &peer; in uv__udp_recvmsg()
254 h.msg_namelen = sizeof(peer); in uv__udp_recvmsg()
255 h.msg_iov = (void*) &buf; in uv__udp_recvmsg()
256 h.msg_iovlen = 1; in uv__udp_recvmsg()
259 nread = recvmsg(handle->io_watcher.fd, &h, 0); in uv__udp_recvmsg()
271 if (h.msg_flags & MSG_TRUNC) in uv__udp_recvmsg()
287 struct msghdr h; in uv__udp_sendmsg_one() local
291 memset(&h, 0, sizeof h); in uv__udp_sendmsg_one()
293 h.msg_name = NULL; in uv__udp_sendmsg_one()
294 h.msg_namelen = 0; in uv__udp_sendmsg_one()
296 h.msg_name = &req->addr; in uv__udp_sendmsg_one()
298 h.msg_namelen = sizeof(struct sockaddr_in6); in uv__udp_sendmsg_one()
300 h.msg_namelen = sizeof(struct sockaddr_in); in uv__udp_sendmsg_one()
302 h.msg_namelen = sizeof(struct sockaddr_un); in uv__udp_sendmsg_one()
308 h.msg_iov = (struct iovec*) req->bufs; in uv__udp_sendmsg_one()
309 h.msg_iovlen = req->nbufs; in uv__udp_sendmsg_one()
312 size = sendmsg(handle->io_watcher.fd, &h, 0); in uv__udp_sendmsg_one()
341 struct mmsghdr h[20]; in uv__udp_sendmsg_many() local
350 pkts < ARRAY_SIZE(h) && q != &handle->write_queue; in uv__udp_sendmsg_many()
354 p = &h[pkts]; in uv__udp_sendmsg_many()
372 h[pkts].msg_hdr.msg_iov = (struct iovec*) req->bufs; in uv__udp_sendmsg_many()
373 h[pkts].msg_hdr.msg_iovlen = req->nbufs; in uv__udp_sendmsg_many()
378 npkts = sendmsg_x(handle->io_watcher.fd, h, pkts, MSG_DONTWAIT); in uv__udp_sendmsg_many()
382 npkts = sendmmsg(handle->io_watcher.fd, h, pkts, 0); in uv__udp_sendmsg_many()
793 struct msghdr h; in uv__udp_try_send() local
810 memset(&h, 0, sizeof h); in uv__udp_try_send()
811 h.msg_name = (struct sockaddr*) addr; in uv__udp_try_send()
812 h.msg_namelen = addrlen; in uv__udp_try_send()
813 h.msg_iov = (struct iovec*) bufs; in uv__udp_try_send()
814 h.msg_iovlen = nbufs; in uv__udp_try_send()
817 size = sendmsg(handle->io_watcher.fd, &h, 0); in uv__udp_try_send()