Searched refs:client_fd (Results 1 – 3 of 3) sorted by relevance
152 SharedFD client_fd; in ReadLoop() local154 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 …]
61 int client_fd = in main_server() local64 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()
121 auto client_fd = SharedFD::Accept(*server_); in AcceptIncomingConnection() local122 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()