int main(int argc,char** argv) { rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); if(!rfbScreen) return 1; rfbScreen->desktopName = "LibVNCServer Example"; rfbScreen->frameBuffer = (char*)malloc(maxx*maxy*bpp); rfbScreen->alwaysShared = TRUE; rfbScreen->ptrAddEvent = doptr; rfbScreen->kbdAddEvent = dokey; rfbScreen->newClientHook = newclient; rfbScreen->httpDir = "../webclients"; rfbScreen->httpEnableProxyConnect = TRUE; |
[링크: https://github.com/LibVNC/libvncserver/blob/master/examples/example.c]
server->authPasswdData = (void *)passwords; server->passwordCheck = rfbCheckPasswordByList; |
[링크 : https://libvnc.github.io/doc/html/structrfb_screen_info.html#a0d709aef47e215065642eb6d0f6de633]
'프로그램 사용 > VNC' 카테고리의 다른 글
libvncserver 기본 인자 (0) | 2022.11.04 |
---|---|
libvncserver 종료 절차 (0) | 2022.11.01 |
libvncserver 로그인 (0) | 2022.09.26 |
libvncserver 접속 끊어짐 문제 (0) | 2022.08.16 |
libvncserver websocket example (0) | 2022.08.12 |