/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/libese/tools/ese_relay/ |
D | ese_relay.c | 73 int client_fd = -1; in main() local 86 int client_fd; in main() local 95 if ((client_fd = accept(server_fd, &client_info, &client_info_len)) == -1) { in main() 112 if (read(client_fd, &network_tx_len, sizeof(network_tx_len)) != in main() 129 ssize_t bytes = read(client_fd, tx_buf + data_read, tx_len - data_read); in main() 190 if (write(client_fd, &network_rx_len, sizeof(network_rx_len)) != in main() 198 write(client_fd, rx_buf + data_read, rx_len - data_read); in main() 208 close(client_fd); in main()
|
/external/ltp/testcases/network/tcp_fastopen/ |
D | tcp_fastopen.c | 505 int client_fd = (intptr_t) cfd; in server_fn() local 514 setsockopt(client_fd, SOL_SOCKET, SO_LINGER, &clo, sizeof(clo)); in server_fn() 516 setsockopt(client_fd, SOL_SOCKET, SO_BUSY_POLL, in server_fn() 523 recv_len = sock_recv_poll(client_fd, recv_msg, in server_fn() 532 tst_resm(TFAIL, "recv failed, sock '%d'", client_fd); in server_fn() 549 "msg recv from sock %d:", client_fd); in server_fn() 570 if (send(client_fd, send_msg, send_msg_size, in server_fn() 580 shutdown(client_fd, SHUT_WR); in server_fn() 586 SAFE_CLOSE(cleanup, client_fd); in server_fn() 591 SAFE_CLOSE(cleanup, client_fd); in server_fn() [all …]
|
/external/libmojo/mojo/edk/embedder/ |
D | platform_channel_pair_posix.cc | 94 int client_fd = -1; in PassClientHandleFromParentProcessFromString() local 96 !base::StringToInt(value, &client_fd) || in PassClientHandleFromParentProcessFromString() 97 client_fd < base::GlobalDescriptors::kBaseDescriptor) { in PassClientHandleFromParentProcessFromString() 102 return ScopedPlatformHandle(PlatformHandle(client_fd)); in PassClientHandleFromParentProcessFromString()
|
/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/libvncserver/libvncserver/ |
D | main.c | 571 int client_fd; in listenerRun() local 580 client_fd = -1; in listenerRun() 595 client_fd = accept(screen->listenSock, (struct sockaddr*)&peer, &len); in listenerRun() 597 client_fd = accept(screen->listen6Sock, (struct sockaddr*)&peer, &len); in listenerRun() 599 if(client_fd >= 0) in listenerRun() 600 cl = rfbNewClient(screen,client_fd); in listenerRun()
|