Lines Matching refs:i
129 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in SendMultiple() local
130 if (send(fd, g_RecvMsgs[i], strlen(g_RecvMsgs[i]) + 1, 0) < 0) { in SendMultiple()
149 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in TestRecvMMsg() local
150 io[i].iov_base = reinterpret_cast<void*>(bufs[i]); in TestRecvMMsg()
151 io[i].iov_len = strlen(g_RecvMsgs[i]) + 1; in TestRecvMMsg()
153 msgs[i].msg_hdr.msg_iov = &io[i]; in TestRecvMMsg()
154 msgs[i].msg_hdr.msg_iovlen = 1; in TestRecvMMsg()
155 msgs[i].msg_len = sizeof(struct msghdr); in TestRecvMMsg()
165 for (size_t i = 0; i < NUM_RECV_MSGS; i++) { in TestRecvMMsg() local
166 ASSERT_STREQ(g_RecvMsgs[i], bufs[i]); in TestRecvMMsg()
192 for (size_t i = 0; i < NUM_SEND_MSGS; i++) { in SendMMsg() local
193 io[i].iov_base = reinterpret_cast<void*>(const_cast<char*>(g_SendMsgs[i])); in SendMMsg()
194 io[i].iov_len = strlen(g_SendMsgs[i]) + 1; in SendMMsg()
195 msgs[i].msg_hdr.msg_iov = &io[i]; in SendMMsg()
196 msgs[i].msg_hdr.msg_iovlen = 1; in SendMMsg()
197 msgs[i].msg_len = sizeof(struct msghdr); in SendMMsg()
216 for (size_t i = 0; i < NUM_SEND_MSGS; i++) { in TestSendMMsg() local
222 ASSERT_EQ(strlen(g_SendMsgs[i]) + 1, in TestSendMMsg()
224 ASSERT_STREQ(g_SendMsgs[i], buffer); in TestSendMMsg()