• Home
  • Raw
  • Download

Lines Matching refs:send_len

88 	int send_len = 10;  in TEST_F()  local
91 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
93 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
94 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
95 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
276 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
280 EXPECT_GE(send(self->fd, buf, send_len, 0), 0); in TEST_F()
281 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F()
282 EXPECT_EQ(memcmp(buf, recv_mem, send_len), 0); in TEST_F()
288 int send_len = 10; in TEST_F() local
291 send_len = strlen(test_str) + 1; in TEST_F()
292 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
293 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
294 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
300 int send_len = 10; in TEST_F() local
303 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
304 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_DONTWAIT), -1); in TEST_F()
305 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
306 EXPECT_EQ(recv(self->cfd, buf, send_len * 2, MSG_WAITALL), in TEST_F()
307 send_len * 2); in TEST_F()
308 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
314 int send_len = 10; in TEST_F() local
317 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()
318 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_DONTWAIT), -1); in TEST_F()
326 size_t send_len = 13; in TEST_F() local
331 vec.iov_len = send_len; in TEST_F()
335 EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len); in TEST_F()
336 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_WAITALL), send_len); in TEST_F()
337 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
375 size_t send_len = 16384; in TEST_F() local
383 struct iovec vec = { (void *)mem, send_len }; in TEST_F()
387 EXPECT_EQ(sendmsg(self->cfd, &msg, 0), send_len); in TEST_F()
391 EXPECT_NE(recv(self->fd, mem, send_len, 0), -1); in TEST_F()
468 int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
474 EXPECT_GE(write(p[1], mem_send, send_len), 0); in TEST_F()
475 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), 0); in TEST_F()
476 EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len); in TEST_F()
477 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
482 int send_len = 16000; in TEST_F() local
494 EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len); in TEST_F()
495 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
500 int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
513 EXPECT_GE(write(p[1], mem_send, send_len), send_len); in TEST_F()
514 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), send_len); in TEST_F()
516 EXPECT_EQ(recv(self->cfd, mem_recv, send_len, MSG_WAITALL), send_len); in TEST_F()
517 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
522 int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
528 EXPECT_GE(send(self->fd, mem_send, send_len, 0), 0); in TEST_F()
529 EXPECT_GE(splice(self->cfd, NULL, p[1], NULL, send_len, 0), 0); in TEST_F()
530 EXPECT_GE(read(p[0], mem_recv, send_len), 0); in TEST_F()
531 EXPECT_EQ(memcmp(mem_send, mem_recv, send_len), 0); in TEST_F()
537 int send_len = strlen(test_str) + 1; in TEST_F() local
543 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
545 vec.iov_len = send_len; in TEST_F()
549 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
554 int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
560 EXPECT_EQ(send(self->fd, send_mem, send_len, 0), send_len); in TEST_F()
567 EXPECT_EQ(memcmp(send_mem, recv_mem, send_len), 0); in TEST_F()
577 int send_len = 1 << 14; in TEST_F() local
582 EXPECT_EQ(send(self->fd, buf, send_len, 0), send_len); in TEST_F()
602 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local
609 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F()
610 EXPECT_NE(recv(self->cfd, recv_mem + send_len, send_len, 0), -1); in TEST_F()
617 unsigned int send_len = 10; in TEST_F() local
621 EXPECT_GE(send(self->fd, send_mem, send_len, 0), 0); in TEST_F()
622 EXPECT_GE(send(self->fd, send_mem, send_len, 0), 0); in TEST_F()
626 EXPECT_EQ(memcmp(send_mem, recv_mem, send_len), 0); in TEST_F()
627 EXPECT_EQ(memcmp(send_mem, recv_mem + send_len, send_len), 0); in TEST_F()
650 int send_len = strlen(test_str) + 1; in TEST_F() local
654 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
678 int send_len = strlen(test_str) + 1; in TEST_F() local
681 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
682 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1); in TEST_F()
683 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
685 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
686 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
692 int send_len = strlen(test_str) + 1; in TEST_F() local
697 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
699 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1); in TEST_F()
700 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
703 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
704 EXPECT_EQ(memcmp(test_str, buf, send_len), 0); in TEST_F()
801 int send_len = 10; in TEST_F() local
821 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
823 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
824 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
825 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
829 EXPECT_EQ(send(self->cfd, test_str, send_len, 0), send_len); in TEST_F()
830 EXPECT_NE(recv(self->fd, buf, send_len, 0), -1); in TEST_F()
831 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
839 int send_len = 10; in TEST_F() local
841 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
847 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_WAITALL), send_len); in TEST_F()
855 int send_len = strlen(test_str) + 1; in TEST_F() local
861 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
865 EXPECT_EQ(recv(self->cfd, recv_mem, send_len, MSG_WAITALL), send_len); in TEST_F()
1121 int send_len = 10; in TEST_F() local
1140 EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len); in TEST_F()
1142 EXPECT_EQ(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
1145 EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL | MSG_PEEK), send_len); in TEST_F()
1153 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1159 EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL), send_len); in TEST_F()
1166 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1172 int send_len = 10; in TEST_F() local
1175 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F()
1177 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F()
1178 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F()
1179 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F()
1188 int send_len = 10; in TEST_F() local
1190 EXPECT_EQ(send(self->fd, test_str, send_len, MSG_MORE), send_len); in TEST_F()