Home
last modified time | relevance | path

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

/device/google/cuttlefish/host/commands/console_forwarder/
Dmain.cpp152 SharedFD client_fd; in ReadLoop() local
154 if (!client_fd->IsOpen()) { in ReadLoop()
155 client_fd = OpenPTY(); in ReadLoop()
160 read_set.Set(client_fd); in ReadLoop()
163 error_set.Set(client_fd); in ReadLoop()
174 if (client_fd->IsOpen()) { in ReadLoop()
175 EnqueueWrite(buf_ptr, client_fd); in ReadLoop()
179 if (read_set.IsSet(client_fd) || error_set.IsSet(client_fd)) { in ReadLoop()
181 auto bytes_read = client_fd->Read(buf_ptr->data(), buf_ptr->size()); in ReadLoop()
187 << client_fd->StrError(); in ReadLoop()
[all …]
/device/google/cuttlefish/shared/minidroid/sample/
Dvsock-test.c61 int client_fd = in main_server() local
64 check_error("accept() on main socket", client_fd < 0, listen_fd); in main_server()
73 int len = read(client_fd, buf, BUFSIZE - 1); in main_server()
79 write(client_fd, buf, len); in main_server()
83 close(client_fd); in main_server()
/device/google/cuttlefish/host/commands/modem_simulator/
Dchannel_monitor.cpp121 auto client_fd = SharedFD::Accept(*server_); in AcceptIncomingConnection() local
122 if (!client_fd->IsOpen()) { in AcceptIncomingConnection()
123 LOG(ERROR) << "Error accepting connection on socket: " << client_fd->StrError(); in AcceptIncomingConnection()
125 auto client = std::make_unique<Client>(client_fd); in AcceptIncomingConnection()