Lines Matching refs:fds
209 int fds[MULTICONN_NFDS]; in test_stream_multiconn_client() local
213 fds[i] = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_multiconn_client()
214 if (fds[i] < 0) { in test_stream_multiconn_client()
222 recv_byte(fds[i], 1, 0); in test_stream_multiconn_client()
224 send_byte(fds[i], 1, 0); in test_stream_multiconn_client()
228 close(fds[i]); in test_stream_multiconn_client()
233 int fds[MULTICONN_NFDS]; in test_stream_multiconn_server() local
237 fds[i] = vsock_stream_accept(VMADDR_CID_ANY, 1234, NULL); in test_stream_multiconn_server()
238 if (fds[i] < 0) { in test_stream_multiconn_server()
246 send_byte(fds[i], 1, 0); in test_stream_multiconn_server()
248 recv_byte(fds[i], 1, 0); in test_stream_multiconn_server()
252 close(fds[i]); in test_stream_multiconn_server()