RfbClientManager::~RfbClientManager()
{
  m_log->info(_T("~RfbClientManager() has been called"));
  disconnectAllClients();
  waitUntilAllClientAreBeenDestroyed();
  m_log->info(_T("~RfbClientManager() has been completed"));
}
Exemple #2
0
    int Server::run() {

      GOOGLE_PROTOBUF_VERIFY_VERSION;

      if (mHost == NULL) {
        std::cout << "Couldn't start server" << std::endl;
        return EXIT_FAILURE;
      }

      while (!_shutdown) {
        if (!service(1000)) break;
        mRegion.tick();
        flushQueue();
      }

      disconnectAllClients();
      enet_host_flush(mHost);
  
      return 0;
    }
void RfbClientManager::onAbnormalDesktopTerminate()
{
  m_log->error(_T("onAbnormalDesktopTerminate() called"));
  disconnectAllClients();
}