/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 41 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/ |
D | test_socket_cookie.c | 87 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/ |
D | ese_relay.c | 85 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/ |
D | ionapp_export.c | 41 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/ |
D | bad_client.cc | 79 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/ |
D | low_level_ping_pong.cc | 419 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/ |
D | crash_generation_server.cc | 131 CrashGenerationServer::CreateReportChannel(int* server_fd, int* client_fd) in CreateReportChannel() argument 148 *client_fd = fds[0]; in CreateReportChannel()
|
D | crash_generation_server.h | 90 static bool CreateReportChannel(int* server_fd, int* client_fd);
|
/external/ltp/testcases/network/netstress/ |
D | netstress.c | 648 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/ |
D | wayland-server.c | 1138 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()
|