krfb
Go to the documentation of this file.
62 #if defined(WIN32) && !defined(__MINGW32__)
63 #define LIBVNCSERVER_WORDS_BIGENDIAN
65 #include <sys/timeb.h>
70 #include <libvncserver-config.h>
74 #ifdef LIBVNCSERVER_HAVE_LIBZ
84 #ifdef WORDS_BIGENDIAN
85 #define LIBVNCSERVER_WORDS_BIGENDIAN
90 #define strncasecmp _strnicmp
93 #if !defined(WIN32) || defined(__MINGW32__)
94 #define max(a,b) (((a)>(b))?(a):(b))
95 #ifdef LIBVNCSERVER_HAVE_SYS_TIME_H
98 #ifdef LIBVNCSERVER_HAVE_NETINET_IN_H
99 #include <netinet/in.h>
112 #ifdef LIBVNCSERVER_NEED_INADDR_T
113 typedef uint32_t in_addr_t;
117 #define INADDR_NONE ((in_addr_t) 0xffffffff)
120 #define MAX_ENCODINGS 21
141 #define sz_rfbRectangle 8
196 #define sz_rfbPixelFormat 16
199 #define rfbPFFullColors 0
200 #define rfbPF256Colors 1
201 #define rfbPF64Colors 2
202 #define rfbPF8Colors 3
203 #define rfbPF8GreyColors 4
204 #define rfbPF4GreyColors 5
205 #define rfbPF2GreyColors 6
239 #define rfbProtocolVersionFormat "RFB %03d.%03d\n"
240 #define rfbProtocolMajorVersion 3
241 #define rfbProtocolMinorVersion 8
248 #define sz_rfbProtocolVersionMsg 12
263 #define rfbSecTypeInvalid 0
264 #define rfbSecTypeNone 1
265 #define rfbSecTypeVncAuth 2
277 #define rfbConnFailed 0
288 #define rfbVeNCrypt 19
290 #define rfbMSLogon 0xfffffffa
292 #define rfbVeNCryptPlain 256
293 #define rfbVeNCryptTLSNone 257
294 #define rfbVeNCryptTLSVNC 258
295 #define rfbVeNCryptTLSPlain 259
296 #define rfbVeNCryptX509None 260
297 #define rfbVeNCryptX509VNC 261
298 #define rfbVeNCryptX509Plain 262
299 #define rfbVeNCryptX509SASL 263
300 #define rfbVeNCryptTLSSASL 264
324 #define rfbVncAuthOK 0
325 #define rfbVncAuthFailed 1
326 #define rfbVncAuthTooMany 2
343 #define sz_rfbClientInitMsg 1
362 #define sz_rfbServerInitMsg (8 + sz_rfbPixelFormat)
388 #define rfbFramebufferUpdate 0
389 #define rfbSetColourMapEntries 1
391 #define rfbServerCutText 3
393 #define rfbResizeFrameBuffer 4
394 #define rfbPalmVNCReSizeFrameBuffer 0xF
398 #define rfbSetPixelFormat 0
399 #define rfbFixColourMapEntries 1
400 #define rfbSetEncodings 2
401 #define rfbFramebufferUpdateRequest 3
402 #define rfbKeyEvent 4
403 #define rfbPointerEvent 5
404 #define rfbClientCutText 6
406 #define rfbFileTransfer 7
408 #define rfbSetScale 8
410 #define rfbSetServerInput 9
414 #define rfbTextChat 11
417 #define rfbPalmVNCSetScaleFactor 0xF
430 #define rfbEncodingRaw 0
431 #define rfbEncodingCopyRect 1
432 #define rfbEncodingRRE 2
433 #define rfbEncodingCoRRE 4
434 #define rfbEncodingHextile 5
435 #define rfbEncodingZlib 6
436 #define rfbEncodingTight 7
437 #define rfbEncodingZlibHex 8
438 #define rfbEncodingUltra 9
439 #define rfbEncodingZRLE 16
440 #define rfbEncodingZYWRLE 17
443 #define rfbEncodingCache 0xFFFF0000
444 #define rfbEncodingCacheEnable 0xFFFF0001
445 #define rfbEncodingXOR_Zlib 0xFFFF0002
446 #define rfbEncodingXORMonoColor_Zlib 0xFFFF0003
447 #define rfbEncodingXORMultiColor_Zlib 0xFFFF0004
448 #define rfbEncodingSolidColor 0xFFFF0005
449 #define rfbEncodingXOREnable 0xFFFF0006
450 #define rfbEncodingCacheZip 0xFFFF0007
451 #define rfbEncodingSolMonoZip 0xFFFF0008
452 #define rfbEncodingUltraZip 0xFFFF0009
455 #define rfbEncodingXvp 0xFFFFFECB
467 #define rfbEncodingCompressLevel0 0xFFFFFF00
468 #define rfbEncodingCompressLevel1 0xFFFFFF01
469 #define rfbEncodingCompressLevel2 0xFFFFFF02
470 #define rfbEncodingCompressLevel3 0xFFFFFF03
471 #define rfbEncodingCompressLevel4 0xFFFFFF04
472 #define rfbEncodingCompressLevel5 0xFFFFFF05
473 #define rfbEncodingCompressLevel6 0xFFFFFF06
474 #define rfbEncodingCompressLevel7 0xFFFFFF07
475 #define rfbEncodingCompressLevel8 0xFFFFFF08
476 #define rfbEncodingCompressLevel9 0xFFFFFF09
478 #define rfbEncodingXCursor 0xFFFFFF10
479 #define rfbEncodingRichCursor 0xFFFFFF11
480 #define rfbEncodingPointerPos 0xFFFFFF18
482 #define rfbEncodingLastRect 0xFFFFFF20
483 #define rfbEncodingNewFBSize 0xFFFFFF21
485 #define rfbEncodingQualityLevel0 0xFFFFFFE0
486 #define rfbEncodingQualityLevel1 0xFFFFFFE1
487 #define rfbEncodingQualityLevel2 0xFFFFFFE2
488 #define rfbEncodingQualityLevel3 0xFFFFFFE3
489 #define rfbEncodingQualityLevel4 0xFFFFFFE4
490 #define rfbEncodingQualityLevel5 0xFFFFFFE5
491 #define rfbEncodingQualityLevel6 0xFFFFFFE6
492 #define rfbEncodingQualityLevel7 0xFFFFFFE7
493 #define rfbEncodingQualityLevel8 0xFFFFFFE8
494 #define rfbEncodingQualityLevel9 0xFFFFFFE9
498 #define rfbEncodingKeyboardLedState 0xFFFE0000
499 #define rfbEncodingSupportedMessages 0xFFFE0001
500 #define rfbEncodingSupportedEncodings 0xFFFE0002
501 #define rfbEncodingServerIdentity 0xFFFE0003
527 #define sz_rfbFramebufferUpdateMsg 4
542 #define sz_rfbFramebufferUpdateRectHeader (sz_rfbRectangle + 4)
552 uint8_t client2server[32];
553 uint8_t server2client[32];
556 #define sz_rfbSupportedMessages 64
583 #define rfbKeyboardMaskShift 1
584 #define rfbKeyboardMaskCapsLock 2
585 #define rfbKeyboardMaskControl 4
586 #define rfbKeyboardMaskAlt 8
587 #define rfbKeyboardMaskMeta 16
588 #define rfbKeyboardMaskSuper 32
589 #define rfbKeyboardMaskHyper 64
590 #define rfbKeyboardMaskNumLock 128
591 #define rfbKeyboardMaskScrollLock 256
592 #define rfbKeyboardMaskAltGraph 512
604 #define sz_rfbCopyRect 4
618 #define sz_rfbRREHeader 4
636 #define sz_rfbCoRRERectangle 4
678 #define rfbHextileRaw (1 << 0)
679 #define rfbHextileBackgroundSpecified (1 << 1)
680 #define rfbHextileForegroundSpecified (1 << 2)
681 #define rfbHextileAnySubrects (1 << 3)
682 #define rfbHextileSubrectsColoured (1 << 4)
684 #define rfbHextilePackXY(x,y) (((x) << 4) | (y))
685 #define rfbHextilePackWH(w,h) ((((w)-1) << 4) | ((h)-1))
686 #define rfbHextileExtractX(byte) ((byte) >> 4)
687 #define rfbHextileExtractY(byte) ((byte) & 0xf)
688 #define rfbHextileExtractW(byte) (((byte) >> 4) + 1)
689 #define rfbHextileExtractH(byte) (((byte) & 0xf) + 1)
702 #define sz_rfbZlibHeader 4
704 #ifdef LIBVNCSERVER_HAVE_LIBZ
831 #define rfbTightExplicitFilter 0x04
832 #define rfbTightFill 0x08
833 #define rfbTightJpeg 0x09
834 #define rfbTightMaxSubencoding 0x09
837 #define rfbTightFilterCopy 0x00
838 #define rfbTightFilterPalette 0x01
839 #define rfbTightFilterGradient 0x02
871 #define sz_rfbXCursorColors 6
897 #define sz_rfbZRLEHeader 4
899 #define rfbZRLETileWidth 64
900 #define rfbZRLETileHeight 64
913 #define rfbHextileZlibRaw (1 << 5)
914 #define rfbHextileZlibHex (1 << 6)
915 #define rfbHextileZlibMono (1 << 7)
938 #define sz_rfbSetColourMapEntriesMsg 6
950 #define sz_rfbBellMsg 1
966 #define sz_rfbServerCutTextMsg 8
986 #define sz_rfbFileTransferMsg 12
988 #define rfbFileTransferVersion 2
991 #define rfbDirContentRequest 1
992 #define rfbDirPacket 2
994 #define rfbFileTransferRequest 3
995 #define rfbFileHeader 4
996 #define rfbFilePacket 5
997 #define rfbEndOfFile 6
998 #define rfbAbortFileTransfer 7
999 #define rfbFileTransferOffer 8
1000 #define rfbFileAcceptHeader 9
1001 #define rfbCommand 10
1002 #define rfbCommandReturn 11
1003 #define rfbFileChecksums 12
1004 #define rfbFileTransferAccess 14
1007 #define rfbRDirContent 1
1008 #define rfbRDrivesList 2
1009 #define rfbRDirRecursiveList 3
1010 #define rfbRDirRecursiveSize 4
1013 #define rfbADirectory 1
1015 #define rfbADrivesList 3
1016 #define rfbADirCreate 4
1017 #define rfbADirDelete 5
1018 #define rfbAFileCreate 6
1019 #define rfbAFileDelete 7
1020 #define rfbAFileRename 8
1021 #define rfbADirRename 9
1022 #define rfbADirRecursiveListItem 10
1023 #define rfbADirRecursiveSize 11
1026 #define rfbCDirCreate 1
1027 #define rfbCDirDelete 2
1028 #define rfbCFileCreate 3
1029 #define rfbCFileDelete 4
1030 #define rfbCFileRename 5
1031 #define rfbCDirRename 6
1034 #define rfbRErrorUnknownCmd 1
1035 #define rfbRErrorCmd 0xFFFFFFFF
1037 #define sz_rfbBlockSize 8192
1038 #define rfbZipDirectoryPrefix "!UVNCDIR-\0"
1039 #define sz_rfbZipDirectoryPrefix 9
1040 #define rfbDirPrefix "[ "
1041 #define rfbDirSuffix " ]"
1059 #define sz_rfbTextChatMsg 8
1061 #define rfbTextMaxSize 4096
1062 #define rfbTextChatOpen 0xFFFFFFFF
1063 #define rfbTextChatClose 0xFFFFFFFE
1064 #define rfbTextChatFinished 0xFFFFFFFD
1095 #define sz_rfbXvpMsg (4)
1098 #define rfbXvp_Fail 0
1099 #define rfbXvp_Init 1
1101 #define rfbXvp_Shutdown 2
1102 #define rfbXvp_Reboot 3
1103 #define rfbXvp_Reset 4
1118 #define sz_rfbResizeFrameBufferMsg 6
1140 #define sz_rfbPalmVNCReSizeFrameBufferMsg (12)
1174 #define sz_rfbCacheRect 2
1198 #define sz_rfbSetPixelFormatMsg (sz_rfbPixelFormat + 4)
1219 #define sz_rfbFixColourMapEntriesMsg 6
1235 #define sz_rfbSetEncodingsMsg 4
1253 #define sz_rfbFramebufferUpdateRequestMsg 10
1294 #define sz_rfbKeyEventMsg 8
1308 #define rfbButton1Mask 1
1309 #define rfbButton2Mask 2
1310 #define rfbButton3Mask 4
1311 #define rfbButton4Mask 8
1312 #define rfbButton5Mask 16
1314 #define rfbWheelUpMask rfbButton4Mask
1315 #define rfbWheelDownMask rfbButton5Mask
1317 #define sz_rfbPointerEventMsg 6
1333 #define sz_rfbClientCutTextMsg 8
1348 #define sz_rfbSetScaleMsg 4
1364 #define sz_rfbPalmVNCSetScaleFactorMsg (4)
1378 #define sz_rfbSetServerInputMsg 4
1392 #define sz_rfbSetSWMsg 6
1423 #define CHALLENGESIZE 16
struct _rfbResizeFrameBufferMsg rfbResizeFrameBufferMsg
struct _rfbTextChatMsg rfbTextChatMsg
rfbFixColourMapEntriesMsg fcme
char * rfbDecryptPasswdFromFile(char *fname)
rfbResizeFrameBufferMsg rsfb
struct _rfbSetServerInputMsg rfbSetServerInputMsg
int rfbEncryptAndStorePasswd(char *passwd, char *fname)
rfbPalmVNCReSizeFrameBufferMsg prsfb
rfbFramebufferUpdateRequestMsg fur
struct _rfbSetScaleMsg rfbSetScaleMsg
char rfbProtocolVersionMsg[13]
uint16_t framebufferWidth
struct _rfbFileTransferMsg rfbFileTransferMsg
struct _rfbSetSWMsg rfbSetSWMsg
rfbFramebufferUpdateMsg fu
rfbSetColourMapEntriesMsg scme
uint16_t framebufferHeight
void rfbRandomBytes(unsigned char *bytes)
rfbPalmVNCSetScaleFactorMsg pssf
void rfbEncryptBytes(unsigned char *bytes, char *passwd)
uint16_t framebufferWidth
uint16_t framebufferHeigth
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.