68 qDebug(LibVNCServer) <<
"CServiceLibVNCServer Init ......";
74 CScreen* screen = CScreen::Instance();
78 m_rfbScreen = rfbGetScreen(0,
nullptr, w, h, 8, 3, bpp);
81 QString name = RabbitCommon::CTools::GetHostName()
82 +
"@" + RabbitCommon::CTools::GetCurrentUser();
83 m_rfbScreen->desktopName = strdup(name.toStdString().c_str());
84 m_rfbScreen->port = GetParameters()->getPort();
85 m_rfbScreen->frameBuffer = (
char*)malloc(w * h * bpp);
86 m_rfbScreen->alwaysShared = TRUE;
87 m_rfbScreen->ptrAddEvent = doptr;
88 m_rfbScreen->kbdAddEvent = dokey;
89 m_rfbScreen->newClientHook = newclient;
90 m_rfbScreen->passwordCheck = checkPassword;
94 m_rfbScreen->screenData =
this;
97 rfbInitServer(m_rfbScreen);