Lines Matching refs:client_fd
70 int client_fd; in server_thread() local
88 client_fd = accept(fd, (struct sockaddr *)&addr, &len); in server_thread()
89 if (CHECK_FAIL(client_fd < 0)) { in server_thread()
94 err += verify_sockopt(client_fd, CUSTOM_INHERIT1, "accept", 1); in server_thread()
95 err += verify_sockopt(client_fd, CUSTOM_INHERIT2, "accept", 1); in server_thread()
96 err += verify_sockopt(client_fd, CUSTOM_LISTENER, "accept", 0); in server_thread()
98 close(client_fd); in server_thread()
173 int server_fd = -1, client_fd; in run_test() local
205 client_fd = connect_to_server(server_fd); in run_test()
206 if (CHECK_FAIL(client_fd < 0)) in run_test()
209 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_INHERIT1, "connect", 0)); in run_test()
210 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_INHERIT2, "connect", 0)); in run_test()
211 CHECK_FAIL(verify_sockopt(client_fd, CUSTOM_LISTENER, "connect", 0)); in run_test()
218 close(client_fd); in run_test()