Lines Matching refs:client_fd
72 int client_fd; in server_thread() local
88 client_fd = accept(fd, (struct sockaddr *)&addr, &len); in server_thread()
89 if (!ASSERT_GE(client_fd, 0, "accept client")) in server_thread()
92 err += verify_sockopt(client_fd, CUSTOM_INHERIT1, "accept", 1); in server_thread()
93 err += verify_sockopt(client_fd, CUSTOM_INHERIT2, "accept", 1); in server_thread()
94 err += verify_sockopt(client_fd, CUSTOM_LISTENER, "accept", 0); in server_thread()
96 close(client_fd); in server_thread()
141 int server_fd = -1, client_fd; in run_test() local
176 client_fd = connect_to_server(server_fd); in run_test()
177 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in run_test()
180 ASSERT_OK(verify_sockopt(client_fd, CUSTOM_INHERIT1, "connect", 0), "verify_sockopt1"); in run_test()
181 ASSERT_OK(verify_sockopt(client_fd, CUSTOM_INHERIT2, "connect", 0), "verify_sockopt2"); in run_test()
182 ASSERT_OK(verify_sockopt(client_fd, CUSTOM_LISTENER, "connect", 0), "verify_sockopt ener"); in run_test()
189 close(client_fd); in run_test()