Lines Matching refs:i
127 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in SendMultiple() local
128 if (send(fd, g_RecvMsgs[i], strlen(g_RecvMsgs[i]) + 1, 0) < 0) { in SendMultiple()
147 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in TestRecvMMsg() local
148 io[i].iov_base = reinterpret_cast<void*>(bufs[i]); in TestRecvMMsg()
149 io[i].iov_len = strlen(g_RecvMsgs[i]) + 1; in TestRecvMMsg()
151 msgs[i].msg_hdr.msg_iov = &io[i]; in TestRecvMMsg()
152 msgs[i].msg_hdr.msg_iovlen = 1; in TestRecvMMsg()
153 msgs[i].msg_len = sizeof(struct msghdr); in TestRecvMMsg()
163 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in TestRecvMMsg() local
164 ASSERT_STREQ(g_RecvMsgs[i], bufs[i]); in TestRecvMMsg()
190 for (size_t i = 0; i < NUM_SEND_MSGS; i++) { in SendMMsg() local
191 io[i].iov_base = reinterpret_cast<void*>(const_cast<char*>(g_SendMsgs[i])); in SendMMsg()
192 io[i].iov_len = strlen(g_SendMsgs[i]) + 1; in SendMMsg()
193 msgs[i].msg_hdr.msg_iov = &io[i]; in SendMMsg()
194 msgs[i].msg_hdr.msg_iovlen = 1; in SendMMsg()
195 msgs[i].msg_len = sizeof(struct msghdr); in SendMMsg()
214 for (size_t i = 0; i < NUM_SEND_MSGS; i++) { in TestSendMMsg() local
220 ASSERT_EQ(strlen(g_SendMsgs[i]) + 1, in TestSendMMsg()
222 ASSERT_STREQ(g_SendMsgs[i], buffer); in TestSendMMsg()