Lines Matching refs:client_fd
344 int listen_fd = -1, accept_fd = -1, client_fd = -1; in test_tcp() local
362 client_fd = connect_to_fd(listen_fd, TIMEOUT_MILLIS); in test_tcp()
363 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_tcp()
373 n = write(client_fd, buf, sizeof(buf)); in test_tcp()
387 if (client_fd >= 0) in test_tcp()
388 close(client_fd); in test_tcp()
560 int opt = 1, accept_fd = -1, client_fd = -1, listen_fd, err; in test_inet_dtime() local
592 client_fd = connect_to_fd(listen_fd, TIMEOUT_MILLIS); in test_inet_dtime()
595 if (!ASSERT_GE(client_fd, 0, "connect_to_fd")) in test_inet_dtime()
605 n = write(client_fd, buf, sizeof(buf)); in test_inet_dtime()
610 snd_tstamp(client_fd, buf, sizeof(buf)); in test_inet_dtime()
618 if (client_fd != -1) in test_inet_dtime()
619 close(client_fd); in test_inet_dtime()