Home
last modified time | relevance | path

Searched refs:recv_sock (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Dtest-filter-mirror.c21 int send_sock[2], recv_sock[2]; in test_mirror() local
32 ret = socketpair(PF_UNIX, SOCK_STREAM, 0, recv_sock); in test_mirror()
39 , send_sock[1], recv_sock[1]); in test_mirror()
57 ret = recv(recv_sock[0], &len, sizeof(len), 0); in test_mirror()
63 ret = recv(recv_sock[0], recv_buf, len, 0); in test_mirror()
70 close(recv_sock[0]); in test_mirror()
71 close(recv_sock[1]); in test_mirror()
H A Dtest-filter-redirector.c63 int backend_sock[2], recv_sock; in test_redirector_tx() local
94 recv_sock = unix_connect(sock_path1, NULL); in test_redirector_tx()
95 g_assert_cmpint(recv_sock, !=, -1); in test_redirector_tx()
114 ret = recv(recv_sock, &len, sizeof(len), 0); in test_redirector_tx()
120 ret = recv(recv_sock, recv_buf, len, 0); in test_redirector_tx()
125 close(recv_sock); in test_redirector_tx()