Lines Matching refs:hdr
25 struct msghdr hdr{};
30 hdr.msg_iov = &iov;
31 hdr.msg_iovlen = 1;
35 hdr.msg_control = cmsgbuf;
36 hdr.msg_controllen = CMSG_LEN(sizeof(int));
38 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr);
45 int ret = sendmsg(sock, &hdr, 0);
59 struct msghdr hdr{};
64 hdr.msg_iov = &iov;
65 hdr.msg_iovlen = 1;
69 hdr.msg_control = cmsgbuf;
70 hdr.msg_controllen = CMSG_LEN(sizeof(int));
72 int ret = recvmsg(sock, &hdr, 0);
82 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr);