Home
last modified time | relevance | path

Searched refs:client_fd (Results 1 – 10 of 10) sorted by relevance

/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c41 int client_fd, accepted_fd; in ConnectAndAccept() local
47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
63 if (connect(client_fd, (struct sockaddr*)(&sa), in ConnectAndAccept()
72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
80 if (connect(client_fd, (struct sockaddr*)(&sa4), in ConnectAndAccept()
93 close(client_fd); in ConnectAndAccept()
130 int server_fd, client_fd, accepted_fd, connect_rc; in CreateServerConnectAndAccept() local
156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
169 connect_rc = connect(client_fd, (struct sockaddr*)(&sa), in CreateServerConnectAndAccept()
175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_socket_cookie.c87 static int validate_map(struct bpf_map *map, int client_fd) in validate_map() argument
116 err = getsockname(client_fd, (struct sockaddr *)&addr, &len); in validate_map()
144 int client_fd = -1; in run_test() local
178 client_fd = connect_to_server(server_fd); in run_test()
179 if (client_fd == -1) in run_test()
182 if (validate_map(bpf_map__next(NULL, pobj), client_fd)) in run_test()
189 close(client_fd); in run_test()
/external/libese/tools/ese_relay/
Dese_relay.c85 int client_fd; in main() local
94 if ((client_fd = accept(server_fd, &client_info, &client_info_len)) == -1) { in main()
111 if (read(client_fd, &network_tx_len, sizeof(network_tx_len)) != in main()
128 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main()
189 if (write(client_fd, &network_rx_len, sizeof(network_rx_len)) != in main()
197 write(client_fd, rx_buf + data_read, rx_len - data_read); in main()
207 close(client_fd); in main()
/external/linux-kselftest/tools/testing/selftests/android/ion/
Dionapp_export.c41 int sockfd, client_fd, shared_fd; in main() local
111 client_fd = info.ionfd; in main()
118 printf("Sharing fd: %d, Client fd: %d\n", shared_fd, client_fd); in main()
/external/grpc-grpc/test/core/bad_client/
Dbad_client.cc79 static void shutdown_client(grpc_endpoint** client_fd) { in shutdown_client() argument
80 if (*client_fd != nullptr) { in shutdown_client()
82 *client_fd, GRPC_ERROR_CREATE_FROM_STATIC_STRING("Forced Disconnect")); in shutdown_client()
83 grpc_endpoint_destroy(*client_fd); in shutdown_client()
85 *client_fd = nullptr; in shutdown_client()
/external/grpc-grpc/test/core/network_benchmarks/
Dlow_level_ping_pong.cc419 int client_fd = -1; in create_sockets_tcp() local
435 client_fd = connect_client(sa_port, sizeof(port)); in create_sockets_tcp()
436 if (client_fd == -1) { in create_sockets_tcp()
447 client_fds->read_fd = client_fd; in create_sockets_tcp()
448 client_fds->write_fd = client_fd; in create_sockets_tcp()
458 if (client_fd != -1) { in create_sockets_tcp()
459 close(client_fd); in create_sockets_tcp()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc131 CrashGenerationServer::CreateReportChannel(int* server_fd, int* client_fd) in CreateReportChannel() argument
148 *client_fd = fds[0]; in CreateReportChannel()
Dcrash_generation_server.h90 static bool CreateReportChannel(int* server_fd, int* client_fd);
/external/ltp/testcases/network/netstress/
Dnetstress.c648 static pthread_t server_thread_add(intptr_t client_fd) in server_thread_add() argument
651 SAFE_PTHREAD_CREATE(&id, &attr, server_fn, (void *) client_fd); in server_thread_add()
760 int client_fd = accept(sfd, (struct sockaddr *)&addr6, in server_run() local
763 if (client_fd == -1) in server_run()
766 server_thread_add(client_fd); in server_run()
/external/wayland/src/
Dwayland-server.c1138 int client_fd; in socket_data() local
1141 client_fd = wl_os_accept_cloexec(fd, (struct sockaddr *) &name, in socket_data()
1143 if (client_fd < 0) in socket_data()
1146 if (!wl_client_create(display, client_fd)) in socket_data()
1147 close(client_fd); in socket_data()