Lines Matching full:send

170 	/* Send data until we get EAGAIN */  in test_eagain()
172 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_eagain()
180 perror("send"); in test_eagain()
181 atf_tc_fail("send returned < 0 but not EAGAIN"); in test_eagain()
209 /* Fill the send buffer */ in test_sendrecv_symmetric_buffers()
212 /* send and receive the packet */ in test_sendrecv_symmetric_buffers()
213 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_sendrecv_symmetric_buffers()
215 perror("send"); in test_sendrecv_symmetric_buffers()
216 atf_tc_fail("send returned < 0"); in test_sendrecv_symmetric_buffers()
218 ATF_CHECK_EQ_MSG(pktsize, ssize, "expected %zd=send(...) but got %zd", in test_sendrecv_symmetric_buffers()
226 ATF_CHECK_EQ_MSG(pktsize, rsize, "expected %zd=send(...) but got %zd", in test_sendrecv_symmetric_buffers()
253 /* Send a total amount of data comfortably greater than the buffers */ in test_pipe_simulator()
261 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in test_pipe_simulator()
266 perror("send"); in test_pipe_simulator()
267 atf_tc_fail("send failed"); in test_pipe_simulator()
271 "expected %zd=send(...) but got %zd", in test_pipe_simulator()
320 ssize = send(td->so, sndbuf, td->pktsize, MSG_EOR); in test_pipe_writer()
322 perror("send"); in test_pipe_writer()
323 atf_tc_fail("send returned < 0"); in test_pipe_writer()
326 "expected %zd=send(...) but got %zd", in test_pipe_writer()
349 "expected %zd=send(...) but got %zd", in test_pipe_reader()
376 /* Send a total amount of data comfortably greater than the buffers */ in test_pipe()
519 ATF_REQUIRE(send(s, &buf, sizeof(buf), 0) == sizeof(buf)); in ATF_TC_BODY()
529 * Test that close(2) of the peer ends in EPIPE when we try to send(2).
557 ATF_REQUIRE(send(s, &s, sizeof(s), 0) == -1); in ATF_TC_BODY()
566 ATF_REQUIRE(send(s, &s, sizeof(s), 0) == -1); in ATF_TC_BODY()
619 /* Resize the send and receive buffers */
657 * Resize the send and receive buffers of a connected socketpair
683 /* Update one side's send buffer */ in ATF_TC_BODY()
715 /* send(2) and recv(2) a single short record */
729 /* send and receive a small packet */ in ATF_TC_BODY()
731 ssize = send(sv[0], data, datalen, MSG_EOR); in ATF_TC_BODY()
733 perror("send"); in ATF_TC_BODY()
734 atf_tc_fail("send returned < 0"); in ATF_TC_BODY()
736 ATF_CHECK_EQ_MSG(datalen, ssize, "expected %zd=send(...) but got %zd", in ATF_TC_BODY()
747 * Edition, sendto(2) is exactly the same as send(2) on a connection-mode socket
773 /* send and receive a small packet */ in ATF_TC_BODY()
777 perror("send"); in ATF_TC_BODY()
778 atf_tc_fail("send returned < 0"); in ATF_TC_BODY()
780 ATF_CHECK_EQ_MSG(datalen, ssize, "expected %zd=send(...) but got %zd", in ATF_TC_BODY()
807 * send(2) and recv(2) a single short record with sockets created the
822 /* send and receive a small packet */ in ATF_TC_BODY()
824 ssize = send(sv[0], data, datalen, MSG_EOR); in ATF_TC_BODY()
826 perror("send"); in ATF_TC_BODY()
827 atf_tc_fail("send returned < 0"); in ATF_TC_BODY()
829 ATF_CHECK_EQ_MSG(datalen, ssize, "expected %zd=send(...) but got %zd", in ATF_TC_BODY()
838 /* send(2) should fail on a shutdown socket */
861 ssize = send(s2, data, datalen, MSG_EOR | MSG_NOSIGNAL); in ATF_TC_BODY()
868 /* send(2) should cause SIGPIPE on a shutdown socket */
891 (void)send(s2, data, datalen, MSG_EOR); in ATF_TC_BODY()
897 /* nonblocking send(2) and recv(2) a single short record */
916 /* send and receive a small packet */ in ATF_TC_BODY()
918 ssize = send(sv[0], data, datalen, MSG_EOR); in ATF_TC_BODY()
920 perror("send"); in ATF_TC_BODY()
921 atf_tc_fail("send returned < 0"); in ATF_TC_BODY()
923 ATF_CHECK_EQ_MSG(datalen, ssize, "expected %zd=send(...) but got %zd", in ATF_TC_BODY()
933 * We should get EAGAIN if we try to send a message larger than the socket
959 * nonblocking send(2) and recv(2) of several records, which should collectively
960 * fill up the send buffer but not the receive buffer
984 * Send and receive packets that are collectively greater than the send in ATF_TC_BODY()
991 /* send the packet */ in ATF_TC_BODY()
992 ssize = send(sv[0], sndbuf, pktsize, MSG_EOR); in ATF_TC_BODY()
994 perror("send"); in ATF_TC_BODY()
995 atf_tc_fail("send returned < 0"); in ATF_TC_BODY()
998 "expected %zd=send(...) but got %zd", pktsize, ssize); in ATF_TC_BODY()
1008 "expected %zd=send(...) but got %zd", pktsize, rsize); in ATF_TC_BODY()
1024 * Simulate the behavior of a blocking pipe. The sender will send until his
1028 * Repeat the test with multiple send and receive buffer sizes
1057 * send and receive buffer sizes
1142 atf_tc_set_md_var(tc, "descr", "Test random sized send/recv with " in ATF_TC_HEAD()
1181 ATF_REQUIRE(send(params->sock, &params->sendbuf[off], len, in sending_thread()
1185 printf("send %zd%s\n", off, flags ? " EOR" : ""); in sending_thread()