/external/libvncserver/libvncserver/ |
H A D | cutpaste.c | 35 void rfbGotXCutText(rfbScreenInfoPtr rfbScreen, char *str, int len) argument 37 rfbSendServerCutText(rfbScreen, str, len);
|
H A D | httpd.c | 104 rfbHttpInitSockets(rfbScreenInfoPtr rfbScreen) argument 106 if (rfbScreen->httpInitDone) 109 rfbScreen->httpInitDone = TRUE; 111 if (!rfbScreen->httpDir) 114 if (rfbScreen->httpPort == 0) { 115 rfbScreen->httpPort = rfbScreen->port-100; 118 if ((rfbScreen->httpListenSock = 119 rfbListenOnTCPPort(rfbScreen->httpPort, rfbScreen 141 rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen) argument 167 rfbHttpCheckFds(rfbScreenInfoPtr rfbScreen) argument 258 httpCloseSock(rfbScreenInfoPtr rfbScreen) argument 272 httpProcessInput(rfbScreenInfoPtr rfbScreen) argument [all...] |
H A D | sockets.c | 131 rfbInitSockets(rfbScreenInfoPtr rfbScreen) argument 133 in_addr_t iface = rfbScreen->listenInterface; 135 if (rfbScreen->socketState == RFB_SOCKET_READY) { 139 rfbScreen->socketState = RFB_SOCKET_READY; 141 if (rfbScreen->inetdSock != -1) { 144 if(!rfbSetNonBlocking(rfbScreen->inetdSock)) 147 if (setsockopt(rfbScreen->inetdSock, IPPROTO_TCP, TCP_NODELAY, 153 FD_ZERO(&(rfbScreen->allFds)); 154 FD_SET(rfbScreen->inetdSock, &(rfbScreen 243 rfbShutdownSockets(rfbScreenInfoPtr rfbScreen) argument 283 rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec) argument 405 rfbProcessNewConnection(rfbScreenInfoPtr rfbScreen) argument 482 rfbDisconnectUDPSock(rfbScreenInfoPtr rfbScreen) argument 529 rfbConnect(rfbScreenInfoPtr rfbScreen, char *host, int port) argument [all...] |
H A D | cargs.c | 77 rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) argument 92 rfbScreen->port = atoi(argv[++i]); 99 rfbScreen->ipv6port = atoi(argv[++i]); 106 rfbScreen->maxClientWait = atoi(argv[++i]); 112 rfbScreen->authPasswdData = argv[++i]; 115 rfbScreen->permitFileTransfer = TRUE; 121 sscanf(argv[++i],"%d.%d", &rfbScreen->protocolMajorVersion, &rfbScreen->protocolMinorVersion); 130 rfbScreen->authPasswdData = (void*)passwds; 131 rfbScreen [all...] |
H A D | font.c | 3 int rfbDrawChar(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, argument 9 int rowstride=rfbScreen->paddedWidthInBytes; 10 int bpp=rfbScreen->serverFormat.bitsPerPixel/8; 27 if(d&0x80 && y+j >= 0 && y+j < rfbScreen->height && 28 x+i >= 0 && x+i < rfbScreen->width) 29 memcpy(rfbScreen->frameBuffer+(y+j)*rowstride+(x+i)*bpp,colour,bpp); 37 void rfbDrawString(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, argument 41 x+=rfbDrawChar(rfbScreen,font,x,y,*string,colour); 48 int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, argument 56 int rowstride=rfbScreen 104 rfbDrawStringWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, int x,int y,const char* string, int x1,int y1,int x2,int y2, rfbPixel colour,rfbPixel backColour) argument [all...] |
H A D | selbox.c | 203 int rfbSelectBox(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, argument 209 int bpp = rfbScreen->bitsPerPixel/8; 211 void* screenDataBackup = rfbScreen->screenData; 212 rfbKbdAddEventProcPtr kbdAddEventBackup = rfbScreen->kbdAddEvent; 213 rfbPtrAddEventProcPtr ptrAddEventBackup = rfbScreen->ptrAddEvent; 214 rfbGetCursorProcPtr getCursorPtrBackup = rfbScreen->getCursorPtr; 215 rfbDisplayHookPtr displayHookBackup = rfbScreen->displayHook; 250 selData.screen = rfbScreen; 262 rfbScreen->screenData = &selData; 263 rfbScreen [all...] |
H A D | cursor.c | 370 void rfbMakeXCursorFromRichCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor) argument 372 rfbPixelFormat* format=&rfbScreen->serverFormat; 440 void rfbMakeRichCursorFromXCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr cursor) argument 442 rfbPixelFormat* format=&rfbScreen->serverFormat; 726 void rfbSetCursor(rfbScreenInfoPtr rfbScreen,rfbCursorPtr c) argument 731 LOCK(rfbScreen->cursorMutex); 733 if(rfbScreen->cursor) { 734 iterator=rfbGetClientIterator(rfbScreen); 740 if(rfbScreen->cursor->cleanup) 741 rfbFreeCursor(rfbScreen [all...] |
H A D | rfbserver.c | 161 rfbClientListInit(rfbScreenInfoPtr rfbScreen) argument 169 rfbScreen->clientHead = NULL; 174 rfbGetClientIterator(rfbScreenInfoPtr rfbScreen) argument 179 i->screen = rfbScreen; 185 rfbGetClientIteratorWithClosed(rfbScreenInfoPtr rfbScreen) argument 190 i->screen = rfbScreen; 248 rfbNewClientConnection(rfbScreenInfoPtr rfbScreen, argument 251 rfbNewClient(rfbScreen,sock); 261 rfbReverseConnection(rfbScreenInfoPtr rfbScreen, argument 268 if ((sock = rfbConnect(rfbScreen, hos 282 rfbSetProtocolVersion(rfbScreenInfoPtr rfbScreen, int major_, int minor_) argument 301 rfbNewTCPOrUDPClient(rfbScreenInfoPtr rfbScreen, int sock, rfbBool isUDP) argument 513 rfbNewClient(rfbScreenInfoPtr rfbScreen, int sock) argument 520 rfbNewUDPClient(rfbScreenInfoPtr rfbScreen) argument 3462 rfbSendBell(rfbScreenInfoPtr rfbScreen) argument 3488 rfbSendServerCutText(rfbScreenInfoPtr rfbScreen,char *str, int len) argument 3527 rfbNewUDPConnection(rfbScreenInfoPtr rfbScreen, int sock) argument 3543 rfbProcessUDPInput(rfbScreenInfoPtr rfbScreen) argument [all...] |
H A D | translate.c | 448 rfbSetClientColourMaps(rfbScreenInfoPtr rfbScreen, int firstColour, int nColours) argument 453 i = rfbGetClientIterator(rfbScreen);
|
H A D | main.c | 267 void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,int dx,int dy) argument 272 iterator=rfbGetClientIterator(rfbScreen); 1099 rfbGetClientIteratorWithClosed(rfbScreenInfoPtr rfbScreen);
|
/external/libvncserver/examples/ |
H A D | pnmshow24.c | 27 rfbScreenInfoPtr rfbScreen; local 62 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,3,3); 63 if(!rfbScreen) 66 rfbScreen->desktopName = argv[1]; 68 rfbScreen->desktopName = "Picture"; 69 rfbScreen->alwaysShared = TRUE; 70 rfbScreen->kbdAddEvent = HandleKey; 73 rfbScreen->httpDir = "../webclients"; 76 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*3*height); 77 fread(rfbScreen [all...] |
H A D | pnmshow.c | 21 rfbScreenInfoPtr rfbScreen; local 67 rfbScreen = rfbGetScreen(&argc,argv,paddedWidth,height,8,(bitsPerPixelInFile+7)/8,bytesPerPixel); 68 if(!rfbScreen) 71 rfbScreen->desktopName = argv[1]; 73 rfbScreen->desktopName = "Picture"; 74 rfbScreen->alwaysShared = TRUE; 75 rfbScreen->kbdAddEvent = HandleKey; 78 rfbScreen->httpDir = "../webclients"; 81 rfbScreen->frameBuffer = (char*)malloc(paddedWidth*bytesPerPixel*height); 82 fread(rfbScreen [all...] |
H A D | fontsel.c | 13 static rfbScreenInfoPtr rfbScreen = NULL; variable 19 if(!rfbScreen) return; 28 rfbFillRect(rfbScreen,210,30-20,210+10*16,30-20+256*20/16,0xb77797); 33 rfbDrawCharWithClip(rfbScreen,curFont,210+10*i,30+j*20/16,j+i, 57 rfbScreen = s;
|
H A D | example.c | 227 static void MakeRichCursor(rfbScreenInfoPtr rfbScreen) argument 230 rfbCursorPtr c = rfbScreen->cursor; 264 c=rfbScreen->cursor = rfbMakeXCursor(w,h,bitmap,bitmap); 283 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); local 284 if(!rfbScreen) 286 rfbScreen->desktopName = "LibVNCServer Example"; 287 rfbScreen->frameBuffer = (char*)malloc(maxx*maxy*bpp); 288 rfbScreen->alwaysShared = TRUE; 289 rfbScreen->ptrAddEvent = doptr; 290 rfbScreen [all...] |
H A D | mac.c | 206 rfbScreenInfoPtr rfbScreen; variable 453 rfbScreen = rfbGetScreen(&argc,argv, 458 if(!rfbScreen) 460 rfbScreen->serverFormat.redShift = bitsPerSample*2; 461 rfbScreen->serverFormat.greenShift = bitsPerSample*1; 462 rfbScreen->serverFormat.blueShift = 0; 464 gethostname(rfbScreen->thisHost, 255); 465 rfbScreen->paddedWidthInBytes = CGDisplayBytesPerRow(kCGDirectMainDisplay); 466 rfbScreen->frameBuffer = 470 rfbScreen [all...] |
/external/libvncserver/test/ |
H A D | cursortest.c | 46 static void SetXCursor(rfbScreenInfoPtr rfbScreen) argument 78 rfbSetCursor(rfbScreen, c); 81 static void SetXCursor2(rfbScreenInfoPtr rfbScreen) argument 134 rfbSetCursor(rfbScreen, c); 139 static void SetRichCursor(rfbScreenInfoPtr rfbScreen) argument 143 /* rfbCursorPtr c = rfbScreen->cursor; */ 191 rfbSetCursor(rfbScreen, c); 195 static void SetRichCursor2(rfbScreenInfoPtr rfbScreen) argument 198 /* rfbCursorPtr c = rfbScreen->cursor; */ 217 /* c=rfbScreen 325 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); local [all...] |
/external/libvncserver/rfb/ |
H A 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...] |