/external/libvncserver/libvncserver/ |
D | httpd.c | 104 rfbHttpInitSockets(rfbScreenInfoPtr rfbScreen) in rfbHttpInitSockets() argument 106 if (rfbScreen->httpInitDone) in rfbHttpInitSockets() 109 rfbScreen->httpInitDone = TRUE; in rfbHttpInitSockets() 111 if (!rfbScreen->httpDir) in rfbHttpInitSockets() 114 if (rfbScreen->httpPort == 0) { in rfbHttpInitSockets() 115 rfbScreen->httpPort = rfbScreen->port-100; in rfbHttpInitSockets() 118 if ((rfbScreen->httpListenSock = in rfbHttpInitSockets() 119 rfbListenOnTCPPort(rfbScreen->httpPort, rfbScreen->listenInterface)) < 0) { in rfbHttpInitSockets() 123 rfbLog("Listening for HTTP connections on TCP port %d\n", rfbScreen->httpPort); in rfbHttpInitSockets() 124 rfbLog(" URL http://%s:%d\n",rfbScreen->thisHost,rfbScreen->httpPort); in rfbHttpInitSockets() [all …]
|
D | sockets.c | 131 rfbInitSockets(rfbScreenInfoPtr rfbScreen) in rfbInitSockets() argument 133 in_addr_t iface = rfbScreen->listenInterface; in rfbInitSockets() 135 if (rfbScreen->socketState == RFB_SOCKET_READY) { in rfbInitSockets() 139 rfbScreen->socketState = RFB_SOCKET_READY; in rfbInitSockets() 141 if (rfbScreen->inetdSock != -1) { in rfbInitSockets() 144 if(!rfbSetNonBlocking(rfbScreen->inetdSock)) in rfbInitSockets() 147 if (setsockopt(rfbScreen->inetdSock, IPPROTO_TCP, TCP_NODELAY, in rfbInitSockets() 153 FD_ZERO(&(rfbScreen->allFds)); in rfbInitSockets() 154 FD_SET(rfbScreen->inetdSock, &(rfbScreen->allFds)); in rfbInitSockets() 155 rfbScreen->maxFd = rfbScreen->inetdSock; in rfbInitSockets() [all …]
|
D | cargs.c | 77 rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) in rfbProcessArguments() argument 92 rfbScreen->port = atoi(argv[++i]); in rfbProcessArguments() 99 rfbScreen->ipv6port = atoi(argv[++i]); in rfbProcessArguments() 106 rfbScreen->maxClientWait = atoi(argv[++i]); in rfbProcessArguments() 112 rfbScreen->authPasswdData = argv[++i]; in rfbProcessArguments() 115 rfbScreen->permitFileTransfer = TRUE; in rfbProcessArguments() 121 sscanf(argv[++i],"%d.%d", &rfbScreen->protocolMajorVersion, &rfbScreen->protocolMinorVersion); in rfbProcessArguments() 130 rfbScreen->authPasswdData = (void*)passwds; in rfbProcessArguments() 131 rfbScreen->passwordCheck = rfbCheckPasswordByList; in rfbProcessArguments() 137 rfbScreen->deferUpdateTime = atoi(argv[++i]); in rfbProcessArguments() [all …]
|
D | font.c | 3 int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, in rfbDrawChar() argument 9 int rowstride=rfbScreen->paddedWidthInBytes; in rfbDrawChar() 10 int bpp=rfbScreen->serverFormat.bitsPerPixel/8; in rfbDrawChar() 27 if(d&0x80 && y+j >= 0 && y+j < rfbScreen->height && in rfbDrawChar() 28 x+i >= 0 && x+i < rfbScreen->width) in rfbDrawChar() 29 memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp); in rfbDrawChar() 37 void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, in rfbDrawString() argument 41 x+=rfbDrawChar(rfbScreen,font,x,y,*string,colour); in rfbDrawString() 48 int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, in rfbDrawCharWithClip() argument 56 int rowstride=rfbScreen->paddedWidthInBytes; in rfbDrawCharWithClip() [all …]
|
D | selbox.c | 203 int rfbSelectBox(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, in rfbSelectBox() argument 209 int bpp = rfbScreen->bitsPerPixel/8; in rfbSelectBox() 211 void* screenDataBackup = rfbScreen->screenData; in rfbSelectBox() 212 rfbKbdAddEventProcPtr kbdAddEventBackup = rfbScreen->kbdAddEvent; in rfbSelectBox() 213 rfbPtrAddEventProcPtr ptrAddEventBackup = rfbScreen->ptrAddEvent; in rfbSelectBox() 214 rfbGetCursorProcPtr getCursorPtrBackup = rfbScreen->getCursorPtr; in rfbSelectBox() 215 rfbDisplayHookPtr displayHookBackup = rfbScreen->displayHook; in rfbSelectBox() 250 selData.screen = rfbScreen; in rfbSelectBox() 262 rfbScreen->screenData = &selData; in rfbSelectBox() 263 rfbScreen->kbdAddEvent = selKbdAddEvent; in rfbSelectBox() [all …]
|
D | cutpaste.c | 35 void rfbGotXCutText(rfbScreenInfoPtr rfbScreen, char *str, int len) in rfbGotXCutText() argument 37 rfbSendServerCutText(rfbScreen, str, len); in rfbGotXCutText()
|
D | rfbserver.c | 161 rfbClientListInit(rfbScreenInfoPtr rfbScreen) in rfbClientListInit() argument 169 rfbScreen->clientHead = NULL; in rfbClientListInit() 174 rfbGetClientIterator(rfbScreenInfoPtr rfbScreen) in rfbGetClientIterator() argument 179 i->screen = rfbScreen; in rfbGetClientIterator() 185 rfbGetClientIteratorWithClosed(rfbScreenInfoPtr rfbScreen) in rfbGetClientIteratorWithClosed() argument 190 i->screen = rfbScreen; in rfbGetClientIteratorWithClosed() 248 rfbNewClientConnection(rfbScreenInfoPtr rfbScreen, in rfbNewClientConnection() argument 251 rfbNewClient(rfbScreen,sock); in rfbNewClientConnection() 261 rfbReverseConnection(rfbScreenInfoPtr rfbScreen, in rfbReverseConnection() argument 268 if ((sock = rfbConnect(rfbScreen, host, port)) < 0) in rfbReverseConnection() [all …]
|
D | cursor.c | 370 void rfbMakeXCursorFromRichCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor) in rfbMakeXCursorFromRichCursor() argument 372 rfbPixelFormat* format=&rfbScreen->serverFormat; in rfbMakeXCursorFromRichCursor() 440 void rfbMakeRichCursorFromXCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor) in rfbMakeRichCursorFromXCursor() argument 442 rfbPixelFormat* format=&rfbScreen->serverFormat; in rfbMakeRichCursorFromXCursor() 726 void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c) in rfbSetCursor() argument 731 LOCK(rfbScreen->cursorMutex); in rfbSetCursor() 733 if(rfbScreen->cursor) { in rfbSetCursor() 734 iterator=rfbGetClientIterator(rfbScreen); in rfbSetCursor() 740 if(rfbScreen->cursor->cleanup) in rfbSetCursor() 741 rfbFreeCursor(rfbScreen->cursor); in rfbSetCursor() [all …]
|
D | translate.c | 448 rfbSetClientColourMaps(rfbScreenInfoPtr rfbScreen, int firstColour, int nColours) in rfbSetClientColourMaps() argument 453 i = rfbGetClientIterator(rfbScreen); in rfbSetClientColourMaps()
|
D | main.c | 267 void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,int dx,int dy) in rfbScheduleCopyRegion() argument 272 iterator=rfbGetClientIterator(rfbScreen); in rfbScheduleCopyRegion() 1099 rfbGetClientIteratorWithClosed(rfbScreenInfoPtr rfbScreen); in rfbProcessEvents()
|
/external/libvncserver/examples/ |
D | pnmshow.c | 21 rfbScreenInfoPtr rfbScreen; in main() local 67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel); in main() 68 if(!rfbScreen) in main() 71 rfbScreen->desktopName = argv[1]; in main() 73 rfbScreen->desktopName = "Picture"; in main() 74 rfbScreen->alwaysShared = TRUE; in main() 75 rfbScreen->kbdAddEvent = HandleKey; in main() 78 rfbScreen->httpDir = "../webclients"; in main() 81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height); in main() 82 fread(rfbScreen->frameBuffer,width*bitsPerPixelInFile/8,height,in); in main() [all …]
|
D | pnmshow24.c | 27 rfbScreenInfoPtr rfbScreen; in main() local 62 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,3,3); in main() 63 if(!rfbScreen) in main() 66 rfbScreen->desktopName = argv[1]; in main() 68 rfbScreen->desktopName = "Picture"; in main() 69 rfbScreen->alwaysShared = TRUE; in main() 70 rfbScreen->kbdAddEvent = HandleKey; in main() 73 rfbScreen->httpDir = "../webclients"; in main() 76 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*3*height); in main() 77 fread(rfbScreen->frameBuffer,width*3,height,in); in main() [all …]
|
D | example.c | 227 static void MakeRichCursor(rfbScreenInfoPtr rfbScreen) in MakeRichCursor() argument 230 rfbCursorPtr c = rfbScreen->cursor; in MakeRichCursor() 264 c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); in MakeRichCursor() 283 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); in main() local 284 if(!rfbScreen) in main() 286 rfbScreen->desktopName = "LibVNCServer Example"; in main() 287 rfbScreen->frameBuffer = (char*)malloc(maxx*maxy*bpp); in main() 288 rfbScreen->alwaysShared = TRUE; in main() 289 rfbScreen->ptrAddEvent = doptr; in main() 290 rfbScreen->kbdAddEvent = dokey; in main() [all …]
|
D | mac.c | 206 rfbScreenInfoPtr rfbScreen; variable 453 rfbScreen = rfbGetScreen(&argc,argv, in ScreenInit() 458 if(!rfbScreen) in ScreenInit() 460 rfbScreen->serverFormat.redShift = bitsPerSample*2; in ScreenInit() 461 rfbScreen->serverFormat.greenShift = bitsPerSample*1; in ScreenInit() 462 rfbScreen->serverFormat.blueShift = 0; in ScreenInit() 464 gethostname(rfbScreen->thisHost, 255); in ScreenInit() 465 rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay); in ScreenInit() 466 rfbScreen->frameBuffer = in ScreenInit() 470 rfbScreen->cursor = NULL; in ScreenInit() [all …]
|
D | fontsel.c | 13 static rfbScreenInfoPtr rfbScreen = NULL; variable 19 if(!rfbScreen) return; in showFont() 28 rfbFillRect(rfbScreen,210,30-20,210+10*16,30-20+256*20/16,0xb77797); in showFont() 33 rfbDrawCharWithClip(rfbScreen,curFont,210+10*i,30+j*20/16,j+i, in showFont() 57 rfbScreen = s; in main()
|
/external/libvncserver/test/ |
D | cursortest.c | 46 static void SetXCursor(rfbScreenInfoPtr rfbScreen) in SetXCursor() argument 78 rfbSetCursor(rfbScreen, c); in SetXCursor() 81 static void SetXCursor2(rfbScreenInfoPtr rfbScreen) in SetXCursor2() argument 134 rfbSetCursor(rfbScreen, c); in SetXCursor2() 139 static void SetRichCursor(rfbScreenInfoPtr rfbScreen) in SetRichCursor() argument 191 rfbSetCursor(rfbScreen, c); in SetRichCursor() 195 static void SetRichCursor2(rfbScreenInfoPtr rfbScreen) in SetRichCursor2() argument 230 rfbSetCursor(rfbScreen, c); in SetRichCursor2() 325 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); in main() local 326 if(!rfbScreen) in main() [all …]
|
/external/libvncserver/rfb/ |
D | rfb.h | 744 extern void rfbInitSockets(rfbScreenInfoPtr rfbScreen); 745 extern void rfbShutdownSockets(rfbScreenInfoPtr rfbScreen); 746 extern void rfbDisconnectUDPSock(rfbScreenInfoPtr rfbScreen); 752 extern int rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec); 753 extern int rfbConnect(rfbScreenInfoPtr rfbScreen, char* host, int port); 776 extern void rfbClientListInit(rfbScreenInfoPtr rfbScreen); 777 extern rfbClientIteratorPtr rfbGetClientIterator(rfbScreenInfoPtr rfbScreen); 783 extern void rfbNewClientConnection(rfbScreenInfoPtr rfbScreen,int sock); 784 extern rfbClientPtr rfbNewClient(rfbScreenInfoPtr rfbScreen,int sock); 785 extern rfbClientPtr rfbNewUDPClient(rfbScreenInfoPtr rfbScreen); [all …]
|
/external/libvncserver/ |
D | README | 70 rfbScreenInfoPtr rfbScreen = 81 rfbScreen->frameBuffer = (char*)malloc(width*height*bpp); 84 rfbInitServer(rfbScreen); 149 rfbGetClientIterator(rfbScreen) 161 If you already have a socket to talk to, just set rfbScreen->inetdSock 165 to set rfbScreen->httpdDir to a directory containing vncviewer.jar and 171 There exist the following IO functions as members of rfbScreen:
|