Lines Matching refs:MSG_PEEK
862 MSG_WAITALL | MSG_PEEK),
1032 EXPECT_EQ(recv(self->cfd, buf, send_len, MSG_PEEK), send_len);
1049 EXPECT_NE(recv(self->cfd, buf, send_len, MSG_PEEK), -1);
1073 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len);
1075 /* MSG_PEEK can only peek into the current record. */
1083 /* Non-MSG_PEEK will advance strparser (and therefore record)
1089 /* MSG_MORE will hold current record open, so later MSG_PEEK
1100 EXPECT_EQ(recv(self->cfd, buf, len, MSG_PEEK | MSG_WAITALL), len);
1123 MSG_PEEK | MSG_WAITALL)), -1);
1475 buf, sizeof(buf), MSG_WAITALL | MSG_PEEK),
1479 /* Recv the message again without MSG_PEEK */
1501 EXPECT_EQ(tls_recv_cmsg(_metadata, self->cfd, 100, buf, sizeof(buf), MSG_PEEK), send_len);
1504 EXPECT_EQ(tls_recv_cmsg(_metadata, self->cfd, 100, buf, sizeof(buf), MSG_PEEK), send_len);
1529 EXPECT_EQ(recv(self->cfd, buf, sizeof(buf), MSG_PEEK), send_len);
1530 EXPECT_EQ(recv(self->cfd, buf, sizeof(buf), MSG_PEEK), send_len);