LibVNCServer/LibVNCClient
|
#include <stdint.h>
#include <rfb/rfbconfig.h>
Go to the source code of this file.
Macros | |
#define | rfbMax(a, b) (((a)>(b))?(a):(b)) |
#define | rfbSocket int |
#define | SOCKET int /* LibVNCServer versions older than 0.9.13 defined this for non-Windows, so keep it here */ |
#define | RFB_INVALID_SOCKET (-1) |
#define | _rfbCloseSocket close |
#define | FALSE 0 |
#define | TRUE -1 |
#define | rfbCloseSocket(s) |
#define | INADDR_NONE ((in_addr_t) 0xffffffff) |
#define | MAX_ENCODINGS 64 |
#define | sz_rfbRectangle 8 |
#define | sz_rfbPixelFormat 16 |
#define | rfbPFFullColors 0 |
#define | rfbPF256Colors 1 |
#define | rfbPF64Colors 2 |
#define | rfbPF8Colors 3 |
#define | rfbPF8GreyColors 4 |
#define | rfbPF4GreyColors 5 |
#define | rfbPF2GreyColors 6 |
#define | rfbProtocolVersionFormat "RFB %03d.%03d\n" |
#define | rfbProtocolMajorVersion 3 |
#define | rfbProtocolMinorVersion 8 |
#define | sz_rfbProtocolVersionMsg 12 |
#define | rfbSecTypeInvalid 0 |
#define | rfbSecTypeNone 1 |
#define | rfbSecTypeVncAuth 2 |
#define | rfbConnFailed 0 |
#define | rfbNoAuth 1 |
#define | rfbVncAuth 2 |
#define | rfbRA2 5 |
#define | rfbRA2ne 6 |
#define | rfbSSPI 7 |
#define | rfbSSPIne 8 |
#define | rfbTight 16 |
#define | rfbUltra 17 |
#define | rfbTLS 18 |
#define | rfbVeNCrypt 19 |
#define | rfbSASL 20 |
#define | rfbARD 30 |
#define | rfbUltraMSLogonI 0x70 /* UNIMPLEMENTED */ |
#define | rfbUltraMSLogonII 0x71 |
#define | rfbMSLogon 0xfffffffa |
#define | rfbVeNCryptPlain 256 |
#define | rfbVeNCryptTLSNone 257 |
#define | rfbVeNCryptTLSVNC 258 |
#define | rfbVeNCryptTLSPlain 259 |
#define | rfbVeNCryptX509None 260 |
#define | rfbVeNCryptX509VNC 261 |
#define | rfbVeNCryptX509Plain 262 |
#define | rfbVeNCryptX509SASL 263 |
#define | rfbVeNCryptTLSSASL 264 |
#define | rfbVncAuthOK 0 |
#define | rfbVncAuthFailed 1 |
#define | rfbVncAuthTooMany 2 |
#define | sz_rfbClientInitMsg 1 |
#define | sz_rfbServerInitMsg (8 + sz_rfbPixelFormat) |
#define | rfbFramebufferUpdate 0 |
#define | rfbSetColourMapEntries 1 |
#define | rfbBell 2 |
#define | rfbServerCutText 3 |
#define | rfbResizeFrameBuffer 4 |
#define | rfbPalmVNCReSizeFrameBuffer 0xF |
#define | rfbSetPixelFormat 0 |
#define | rfbFixColourMapEntries 1 /* not currently supported */ |
#define | rfbSetEncodings 2 |
#define | rfbFramebufferUpdateRequest 3 |
#define | rfbKeyEvent 4 |
#define | rfbPointerEvent 5 |
#define | rfbClientCutText 6 |
#define | rfbFileTransfer 7 |
#define | rfbSetScale 8 |
#define | rfbSetServerInput 9 |
#define | rfbSetSW 10 |
#define | rfbTextChat 11 |
#define | rfbPalmVNCSetScaleFactor 0xF |
#define | rfbXvp 250 |
#define | rfbSetDesktopSize 251 |
#define | rfbQemuEvent 255 |
#define | rfbEncodingRaw 0 |
#define | rfbEncodingCopyRect 1 |
#define | rfbEncodingRRE 2 |
#define | rfbEncodingCoRRE 4 |
#define | rfbEncodingHextile 5 |
#define | rfbEncodingZlib 6 |
#define | rfbEncodingTight 7 |
#define | rfbEncodingTightPng 0xFFFFFEFC /* -260 */ |
#define | rfbEncodingZlibHex 8 |
#define | rfbEncodingUltra 9 |
#define | rfbEncodingTRLE 15 |
#define | rfbEncodingZRLE 16 |
#define | rfbEncodingZYWRLE 17 |
#define | rfbEncodingH264 0x48323634 |
#define | rfbEncodingCache 0xFFFF0000 |
#define | rfbEncodingCacheEnable 0xFFFF0001 |
#define | rfbEncodingXOR_Zlib 0xFFFF0002 |
#define | rfbEncodingXORMonoColor_Zlib 0xFFFF0003 |
#define | rfbEncodingXORMultiColor_Zlib 0xFFFF0004 |
#define | rfbEncodingSolidColor 0xFFFF0005 |
#define | rfbEncodingXOREnable 0xFFFF0006 |
#define | rfbEncodingCacheZip 0xFFFF0007 |
#define | rfbEncodingSolMonoZip 0xFFFF0008 |
#define | rfbEncodingUltraZip 0xFFFF0009 |
#define | rfbEncodingXvp 0xFFFFFECB |
#define | rfbEncodingFineQualityLevel0 0xFFFFFE00 |
#define | rfbEncodingFineQualityLevel100 0xFFFFFE64 |
#define | rfbEncodingSubsamp1X 0xFFFFFD00 |
#define | rfbEncodingSubsamp4X 0xFFFFFD01 |
#define | rfbEncodingSubsamp2X 0xFFFFFD02 |
#define | rfbEncodingSubsampGray 0xFFFFFD03 |
#define | rfbEncodingSubsamp8X 0xFFFFFD04 |
#define | rfbEncodingSubsamp16X 0xFFFFFD05 |
#define | rfbEncodingCompressLevel0 0xFFFFFF00 |
#define | rfbEncodingCompressLevel1 0xFFFFFF01 |
#define | rfbEncodingCompressLevel2 0xFFFFFF02 |
#define | rfbEncodingCompressLevel3 0xFFFFFF03 |
#define | rfbEncodingCompressLevel4 0xFFFFFF04 |
#define | rfbEncodingCompressLevel5 0xFFFFFF05 |
#define | rfbEncodingCompressLevel6 0xFFFFFF06 |
#define | rfbEncodingCompressLevel7 0xFFFFFF07 |
#define | rfbEncodingCompressLevel8 0xFFFFFF08 |
#define | rfbEncodingCompressLevel9 0xFFFFFF09 |
#define | rfbEncodingXCursor 0xFFFFFF10 |
#define | rfbEncodingRichCursor 0xFFFFFF11 |
#define | rfbEncodingPointerPos 0xFFFFFF18 |
#define | rfbEncodingLastRect 0xFFFFFF20 |
#define | rfbEncodingNewFBSize 0xFFFFFF21 |
#define | rfbEncodingExtDesktopSize 0xFFFFFECC |
#define | rfbEncodingQualityLevel0 0xFFFFFFE0 |
#define | rfbEncodingQualityLevel1 0xFFFFFFE1 |
#define | rfbEncodingQualityLevel2 0xFFFFFFE2 |
#define | rfbEncodingQualityLevel3 0xFFFFFFE3 |
#define | rfbEncodingQualityLevel4 0xFFFFFFE4 |
#define | rfbEncodingQualityLevel5 0xFFFFFFE5 |
#define | rfbEncodingQualityLevel6 0xFFFFFFE6 |
#define | rfbEncodingQualityLevel7 0xFFFFFFE7 |
#define | rfbEncodingQualityLevel8 0xFFFFFFE8 |
#define | rfbEncodingQualityLevel9 0xFFFFFFE9 |
#define | rfbEncodingQemuExtendedKeyEvent 0xFFFFFEFE /* -258 */ |
#define | rfbEncodingExtendedClipboard 0xC0A1E5CE |
#define | rfbEncodingKeyboardLedState 0xFFFE0000 |
#define | rfbEncodingSupportedMessages 0xFFFE0001 |
#define | rfbEncodingSupportedEncodings 0xFFFE0002 |
#define | rfbEncodingServerIdentity 0xFFFE0003 |
#define | sz_rfbFramebufferUpdateMsg 4 |
#define | sz_rfbFramebufferUpdateRectHeader (sz_rfbRectangle + 4) |
#define | sz_rfbSupportedMessages 64 |
#define | rfbKeyboardMaskShift 1 |
#define | rfbKeyboardMaskCapsLock 2 |
#define | rfbKeyboardMaskControl 4 |
#define | rfbKeyboardMaskAlt 8 |
#define | rfbKeyboardMaskMeta 16 |
#define | rfbKeyboardMaskSuper 32 |
#define | rfbKeyboardMaskHyper 64 |
#define | rfbKeyboardMaskNumLock 128 |
#define | rfbKeyboardMaskScrollLock 256 |
#define | rfbKeyboardMaskAltGraph 512 |
#define | sz_rfbCopyRect 4 |
#define | sz_rfbRREHeader 4 |
#define | sz_rfbCoRRERectangle 4 |
#define | rfbHextileRaw (1 << 0) |
#define | rfbHextileBackgroundSpecified (1 << 1) |
#define | rfbHextileForegroundSpecified (1 << 2) |
#define | rfbHextileAnySubrects (1 << 3) |
#define | rfbHextileSubrectsColoured (1 << 4) |
#define | rfbHextilePackXY(x, y) (((x) << 4) | (y)) |
#define | rfbHextilePackWH(w, h) ((((w)-1) << 4) | ((h)-1)) |
#define | rfbHextileExtractX(byte) ((byte) >> 4) |
#define | rfbHextileExtractY(byte) ((byte) & 0xf) |
#define | rfbHextileExtractW(byte) (((byte) >> 4) + 1) |
#define | rfbHextileExtractH(byte) (((byte) & 0xf) + 1) |
#define | sz_rfbZlibHeader 4 |
#define | sz_rfbXCursorColors 6 |
#define | sz_rfbZRLEHeader 4 |
#define | rfbZRLETileWidth 64 |
#define | rfbZRLETileHeight 64 |
#define | rfbHextileZlibRaw (1 << 5) |
#define | rfbHextileZlibHex (1 << 6) |
#define | rfbHextileZlibMono (1 << 7) |
#define | sz_rfbSetColourMapEntriesMsg 6 |
#define | sz_rfbBellMsg 1 |
#define | sz_rfbServerCutTextMsg 8 |
#define | sz_rfbFileTransferMsg 12 |
#define | rfbFileTransferVersion 2 /* v1 is the old FT version ( <= 1.0.0 RC18 versions) */ |
#define | rfbDirContentRequest 1 /* Client asks for the content of a given Server directory */ |
#define | rfbDirPacket 2 /* Full directory name or full file name. */ |
#define | rfbFileTransferRequest 3 /* Client asks the server for the transfer of a given file */ |
#define | rfbFileHeader 4 /* First packet of a file transfer, containing file's features */ |
#define | rfbFilePacket 5 /* One chunk of the file */ |
#define | rfbEndOfFile 6 /* End of file transfer (the file has been received or error) */ |
#define | rfbAbortFileTransfer 7 /* The file transfer must be aborted, whatever the state */ |
#define | rfbFileTransferOffer 8 /* The client offers to send a file to the server */ |
#define | rfbFileAcceptHeader 9 /* The server accepts or rejects the file */ |
#define | rfbCommand 10 /* The Client sends a simple command (File Delete, Dir create etc...) */ |
#define | rfbCommandReturn 11 /* The Client receives the server's answer about a simple command */ |
#define | rfbFileChecksums 12 /* The zipped checksums of the destination file (Delta Transfer) */ |
#define | rfbFileTransferAccess 14 /* Request FileTransfer authorization */ |
#define | rfbRDirContent 1 /* Request a Server Directory contents */ |
#define | rfbRDrivesList 2 /* Request the server's drives list */ |
#define | rfbRDirRecursiveList 3 /* Request a server directory content recursive sorted list */ |
#define | rfbRDirRecursiveSize 4 /* Request a server directory content recursive size */ |
#define | rfbADirectory 1 /* Reception of a directory name */ |
#define | rfbAFile 2 /* Reception of a file name */ |
#define | rfbADrivesList 3 /* Reception of a list of drives */ |
#define | rfbADirCreate 4 /* Response to a create dir command */ |
#define | rfbADirDelete 5 /* Response to a delete dir command */ |
#define | rfbAFileCreate 6 /* Response to a create file command */ |
#define | rfbAFileDelete 7 /* Response to a delete file command */ |
#define | rfbAFileRename 8 /* Response to a rename file command */ |
#define | rfbADirRename 9 /* Response to a rename dir command */ |
#define | rfbADirRecursiveListItem 10 |
#define | rfbADirRecursiveSize 11 |
#define | rfbCDirCreate 1 /* Request the server to create the given directory */ |
#define | rfbCDirDelete 2 /* Request the server to delete the given directory */ |
#define | rfbCFileCreate 3 /* Request the server to create the given file */ |
#define | rfbCFileDelete 4 /* Request the server to delete the given file */ |
#define | rfbCFileRename 5 /* Request the server to rename the given file */ |
#define | rfbCDirRename 6 /* Request the server to rename the given directory */ |
#define | rfbRErrorUnknownCmd 1 /* Unknown FileTransfer command. */ |
#define | rfbRErrorCmd 0xFFFFFFFF/* Error when a command fails on remote side (ret in "size" field) */ |
#define | sz_rfbBlockSize 8192 /* Size of a File Transfer packet (before compression) */ |
#define | rfbZipDirectoryPrefix "!UVNCDIR-\0" /* Transferred directory are zipped in a file with this prefix. Must end with "-" */ |
#define | sz_rfbZipDirectoryPrefix 9 |
#define | rfbDirPrefix "[ " |
#define | rfbDirSuffix " ]" |
#define | sz_rfbTextChatMsg 8 |
#define | rfbTextMaxSize 4096 |
#define | rfbTextChatOpen 0xFFFFFFFF |
#define | rfbTextChatClose 0xFFFFFFFE |
#define | rfbTextChatFinished 0xFFFFFFFD |
#define | sz_rfbXvpMsg (4) |
#define | rfbXvp_Fail 0 |
#define | rfbXvp_Init 1 |
#define | rfbXvp_Shutdown 2 |
#define | rfbXvp_Reboot 3 |
#define | rfbXvp_Reset 4 |
#define | sz_rfbExtDesktopSizeMsg (4) |
#define | sz_rfbExtDesktopScreen (16) |
#define | rfbExtDesktopSize_GenericChange 0 |
#define | rfbExtDesktopSize_ClientRequestedChange 1 |
#define | rfbExtDesktopSize_OtherClientRequestedChange 2 |
#define | rfbExtDesktopSize_Success 0 |
#define | rfbExtDesktopSize_ResizeProhibited 1 |
#define | rfbExtDesktopSize_OutOfResources 2 |
#define | rfbExtDesktopSize_InvalidScreenLayout 3 |
#define | sz_rfbSetDesktopSizeMsg (8) |
#define | sz_rfbResizeFrameBufferMsg 6 |
#define | sz_rfbPalmVNCReSizeFrameBufferMsg (12) |
#define | sz_rfbCacheRect 2 |
#define | sz_rfbSetPixelFormatMsg (sz_rfbPixelFormat + 4) |
#define | sz_rfbFixColourMapEntriesMsg 6 |
#define | sz_rfbSetEncodingsMsg 4 |
#define | sz_rfbFramebufferUpdateRequestMsg 10 |
#define | sz_rfbKeyEventMsg 8 |
#define | sz_rfbQemuExtendedKeyEventMsg 12 |
#define | rfbButton1Mask 1 |
#define | rfbButton2Mask 2 |
#define | rfbButton3Mask 4 |
#define | rfbButton4Mask 8 |
#define | rfbButton5Mask 16 |
#define | rfbWheelUpMask rfbButton4Mask |
#define | rfbWheelDownMask rfbButton5Mask |
#define | sz_rfbPointerEventMsg 6 |
#define | rfbExtendedClipboard_Text 1 |
#define | rfbExtendedClipboard_RTF 2 |
#define | rfbExtendedClipboard_HTML 4 |
#define | rfbExtendedClipboard_DIB 8 |
#define | rfbExtendedClipboard_Files 16 |
#define | rfbExtendedClipboard_Caps (1 << 24) |
#define | rfbExtendedClipboard_Request (1 << 25) |
#define | rfbExtendedClipboard_Peek (1 << 26) |
#define | rfbExtendedClipboard_Notify (1 << 27) |
#define | rfbExtendedClipboard_Provide (1 << 28) |
#define | sz_rfbClientCutTextMsg 8 |
#define | sz_rfbSetScaleMsg 4 |
#define | sz_rfbPalmVNCSetScaleFactorMsg (4) |
#define | sz_rfbSetServerInputMsg 4 |
#define | sz_rfbSetSWMsg 6 |
#define | MAXPWLEN 8 |
#define | CHALLENGESIZE 16 |
Typedefs | |
typedef int8_t | rfbBool |
typedef uint32_t | rfbKeySym |
typedef uint32_t | rfbPixel |
typedef char | rfbProtocolVersionMsg[13] |
Functions | |
int | rfbEncryptAndStorePasswd (char *passwd, char *fname) |
char * | rfbDecryptPasswdFromFile (char *fname) |
void | rfbRandomBytes (unsigned char *bytes) |
void | rfbEncryptBytes (unsigned char *bytes, char *passwd) |
#define _rfbCloseSocket close |
Definition at line 107 of file rfbproto.h.
#define CHALLENGESIZE 16 |
Definition at line 1555 of file rfbproto.h.
#define FALSE 0 |
Definition at line 110 of file rfbproto.h.
#define INADDR_NONE ((in_addr_t) 0xffffffff) |
Definition at line 130 of file rfbproto.h.
#define MAX_ENCODINGS 64 |
Definition at line 133 of file rfbproto.h.
#define MAXPWLEN 8 |
Definition at line 1554 of file rfbproto.h.
#define RFB_INVALID_SOCKET (-1) |
Definition at line 106 of file rfbproto.h.
#define rfbAbortFileTransfer 7 /* The file transfer must be aborted, whatever the state */ |
Definition at line 1049 of file rfbproto.h.
#define rfbADirCreate 4 /* Response to a create dir command */ |
Definition at line 1067 of file rfbproto.h.
#define rfbADirDelete 5 /* Response to a delete dir command */ |
Definition at line 1068 of file rfbproto.h.
#define rfbADirectory 1 /* Reception of a directory name */ |
Definition at line 1064 of file rfbproto.h.
#define rfbADirRecursiveListItem 10 |
Definition at line 1073 of file rfbproto.h.
#define rfbADirRecursiveSize 11 |
Definition at line 1074 of file rfbproto.h.
#define rfbADirRename 9 /* Response to a rename dir command */ |
Definition at line 1072 of file rfbproto.h.
#define rfbADrivesList 3 /* Reception of a list of drives */ |
Definition at line 1066 of file rfbproto.h.
#define rfbAFile 2 /* Reception of a file name */ |
Definition at line 1065 of file rfbproto.h.
#define rfbAFileCreate 6 /* Response to a create file command */ |
Definition at line 1069 of file rfbproto.h.
#define rfbAFileDelete 7 /* Response to a delete file command */ |
Definition at line 1070 of file rfbproto.h.
#define rfbAFileRename 8 /* Response to a rename file command */ |
Definition at line 1071 of file rfbproto.h.
#define rfbARD 30 |
Definition at line 303 of file rfbproto.h.
#define rfbBell 2 |
Definition at line 406 of file rfbproto.h.
#define rfbButton1Mask 1 |
Definition at line 1429 of file rfbproto.h.
#define rfbButton2Mask 2 |
Definition at line 1430 of file rfbproto.h.
#define rfbButton3Mask 4 |
Definition at line 1431 of file rfbproto.h.
#define rfbButton4Mask 8 |
Definition at line 1432 of file rfbproto.h.
#define rfbButton5Mask 16 |
Definition at line 1433 of file rfbproto.h.
#define rfbCDirCreate 1 /* Request the server to create the given directory */ |
Definition at line 1077 of file rfbproto.h.
#define rfbCDirDelete 2 /* Request the server to delete the given directory */ |
Definition at line 1078 of file rfbproto.h.
#define rfbCDirRename 6 /* Request the server to rename the given directory */ |
Definition at line 1082 of file rfbproto.h.
#define rfbCFileCreate 3 /* Request the server to create the given file */ |
Definition at line 1079 of file rfbproto.h.
#define rfbCFileDelete 4 /* Request the server to delete the given file */ |
Definition at line 1080 of file rfbproto.h.
#define rfbCFileRename 5 /* Request the server to rename the given file */ |
Definition at line 1081 of file rfbproto.h.
#define rfbClientCutText 6 |
Definition at line 420 of file rfbproto.h.
#define rfbCloseSocket | ( | s | ) |
Definition at line 114 of file rfbproto.h.
#define rfbCommand 10 /* The Client sends a simple command (File Delete, Dir create etc...) */ |
Definition at line 1052 of file rfbproto.h.
#define rfbCommandReturn 11 /* The Client receives the server's answer about a simple command */ |
Definition at line 1053 of file rfbproto.h.
#define rfbConnFailed 0 |
Definition at line 290 of file rfbproto.h.
#define rfbDirContentRequest 1 /* Client asks for the content of a given Server directory */ |
Definition at line 1042 of file rfbproto.h.
#define rfbDirPacket 2 /* Full directory name or full file name. */ |
Definition at line 1043 of file rfbproto.h.
#define rfbDirPrefix "[ " |
Definition at line 1091 of file rfbproto.h.
#define rfbDirSuffix " ]" |
Definition at line 1092 of file rfbproto.h.
#define rfbEncodingCache 0xFFFF0000 |
Definition at line 466 of file rfbproto.h.
#define rfbEncodingCacheEnable 0xFFFF0001 |
Definition at line 467 of file rfbproto.h.
#define rfbEncodingCacheZip 0xFFFF0007 |
Definition at line 473 of file rfbproto.h.
#define rfbEncodingCompressLevel0 0xFFFFFF00 |
Definition at line 501 of file rfbproto.h.
#define rfbEncodingCompressLevel1 0xFFFFFF01 |
Definition at line 502 of file rfbproto.h.
#define rfbEncodingCompressLevel2 0xFFFFFF02 |
Definition at line 503 of file rfbproto.h.
#define rfbEncodingCompressLevel3 0xFFFFFF03 |
Definition at line 504 of file rfbproto.h.
#define rfbEncodingCompressLevel4 0xFFFFFF04 |
Definition at line 505 of file rfbproto.h.
#define rfbEncodingCompressLevel5 0xFFFFFF05 |
Definition at line 506 of file rfbproto.h.
#define rfbEncodingCompressLevel6 0xFFFFFF06 |
Definition at line 507 of file rfbproto.h.
#define rfbEncodingCompressLevel7 0xFFFFFF07 |
Definition at line 508 of file rfbproto.h.
#define rfbEncodingCompressLevel8 0xFFFFFF08 |
Definition at line 509 of file rfbproto.h.
#define rfbEncodingCompressLevel9 0xFFFFFF09 |
Definition at line 510 of file rfbproto.h.
#define rfbEncodingCopyRect 1 |
Definition at line 450 of file rfbproto.h.
#define rfbEncodingCoRRE 4 |
Definition at line 452 of file rfbproto.h.
#define rfbEncodingExtDesktopSize 0xFFFFFECC |
Definition at line 518 of file rfbproto.h.
#define rfbEncodingExtendedClipboard 0xC0A1E5CE |
Definition at line 532 of file rfbproto.h.
#define rfbEncodingFineQualityLevel0 0xFFFFFE00 |
Definition at line 492 of file rfbproto.h.
#define rfbEncodingFineQualityLevel100 0xFFFFFE64 |
Definition at line 493 of file rfbproto.h.
#define rfbEncodingH264 0x48323634 |
Definition at line 463 of file rfbproto.h.
#define rfbEncodingHextile 5 |
Definition at line 453 of file rfbproto.h.
#define rfbEncodingKeyboardLedState 0xFFFE0000 |
Definition at line 535 of file rfbproto.h.
#define rfbEncodingLastRect 0xFFFFFF20 |
Definition at line 516 of file rfbproto.h.
#define rfbEncodingNewFBSize 0xFFFFFF21 |
Definition at line 517 of file rfbproto.h.
#define rfbEncodingPointerPos 0xFFFFFF18 |
Definition at line 514 of file rfbproto.h.
#define rfbEncodingQemuExtendedKeyEvent 0xFFFFFEFE /* -258 */ |
Definition at line 531 of file rfbproto.h.
#define rfbEncodingQualityLevel0 0xFFFFFFE0 |
Definition at line 520 of file rfbproto.h.
#define rfbEncodingQualityLevel1 0xFFFFFFE1 |
Definition at line 521 of file rfbproto.h.
#define rfbEncodingQualityLevel2 0xFFFFFFE2 |
Definition at line 522 of file rfbproto.h.
#define rfbEncodingQualityLevel3 0xFFFFFFE3 |
Definition at line 523 of file rfbproto.h.
#define rfbEncodingQualityLevel4 0xFFFFFFE4 |
Definition at line 524 of file rfbproto.h.
#define rfbEncodingQualityLevel5 0xFFFFFFE5 |
Definition at line 525 of file rfbproto.h.
#define rfbEncodingQualityLevel6 0xFFFFFFE6 |
Definition at line 526 of file rfbproto.h.
#define rfbEncodingQualityLevel7 0xFFFFFFE7 |
Definition at line 527 of file rfbproto.h.
#define rfbEncodingQualityLevel8 0xFFFFFFE8 |
Definition at line 528 of file rfbproto.h.
#define rfbEncodingQualityLevel9 0xFFFFFFE9 |
Definition at line 529 of file rfbproto.h.
#define rfbEncodingRaw 0 |
Definition at line 449 of file rfbproto.h.
#define rfbEncodingRichCursor 0xFFFFFF11 |
Definition at line 513 of file rfbproto.h.
#define rfbEncodingRRE 2 |
Definition at line 451 of file rfbproto.h.
#define rfbEncodingServerIdentity 0xFFFE0003 |
Definition at line 538 of file rfbproto.h.
#define rfbEncodingSolidColor 0xFFFF0005 |
Definition at line 471 of file rfbproto.h.
#define rfbEncodingSolMonoZip 0xFFFF0008 |
Definition at line 474 of file rfbproto.h.
#define rfbEncodingSubsamp16X 0xFFFFFD05 |
Definition at line 499 of file rfbproto.h.
#define rfbEncodingSubsamp1X 0xFFFFFD00 |
Definition at line 494 of file rfbproto.h.
#define rfbEncodingSubsamp2X 0xFFFFFD02 |
Definition at line 496 of file rfbproto.h.
#define rfbEncodingSubsamp4X 0xFFFFFD01 |
Definition at line 495 of file rfbproto.h.
#define rfbEncodingSubsamp8X 0xFFFFFD04 |
Definition at line 498 of file rfbproto.h.
#define rfbEncodingSubsampGray 0xFFFFFD03 |
Definition at line 497 of file rfbproto.h.
#define rfbEncodingSupportedEncodings 0xFFFE0002 |
Definition at line 537 of file rfbproto.h.
#define rfbEncodingSupportedMessages 0xFFFE0001 |
Definition at line 536 of file rfbproto.h.
#define rfbEncodingTight 7 |
Definition at line 455 of file rfbproto.h.
#define rfbEncodingTightPng 0xFFFFFEFC /* -260 */ |
Definition at line 456 of file rfbproto.h.
#define rfbEncodingTRLE 15 |
Definition at line 459 of file rfbproto.h.
#define rfbEncodingUltra 9 |
Definition at line 458 of file rfbproto.h.
#define rfbEncodingUltraZip 0xFFFF0009 |
Definition at line 475 of file rfbproto.h.
#define rfbEncodingXCursor 0xFFFFFF10 |
Definition at line 512 of file rfbproto.h.
#define rfbEncodingXOR_Zlib 0xFFFF0002 |
Definition at line 468 of file rfbproto.h.
#define rfbEncodingXOREnable 0xFFFF0006 |
Definition at line 472 of file rfbproto.h.
#define rfbEncodingXORMonoColor_Zlib 0xFFFF0003 |
Definition at line 469 of file rfbproto.h.
#define rfbEncodingXORMultiColor_Zlib 0xFFFF0004 |
Definition at line 470 of file rfbproto.h.
#define rfbEncodingXvp 0xFFFFFECB |
Definition at line 478 of file rfbproto.h.
#define rfbEncodingZlib 6 |
Definition at line 454 of file rfbproto.h.
#define rfbEncodingZlibHex 8 |
Definition at line 457 of file rfbproto.h.
#define rfbEncodingZRLE 16 |
Definition at line 460 of file rfbproto.h.
#define rfbEncodingZYWRLE 17 |
Definition at line 461 of file rfbproto.h.
#define rfbEndOfFile 6 /* End of file transfer (the file has been received or error) */ |
Definition at line 1048 of file rfbproto.h.
#define rfbExtDesktopSize_ClientRequestedChange 1 |
Definition at line 1185 of file rfbproto.h.
#define rfbExtDesktopSize_GenericChange 0 |
Definition at line 1184 of file rfbproto.h.
#define rfbExtDesktopSize_InvalidScreenLayout 3 |
Definition at line 1192 of file rfbproto.h.
#define rfbExtDesktopSize_OtherClientRequestedChange 2 |
Definition at line 1186 of file rfbproto.h.
#define rfbExtDesktopSize_OutOfResources 2 |
Definition at line 1191 of file rfbproto.h.
#define rfbExtDesktopSize_ResizeProhibited 1 |
Definition at line 1190 of file rfbproto.h.
#define rfbExtDesktopSize_Success 0 |
Definition at line 1189 of file rfbproto.h.
#define rfbExtendedClipboard_Caps (1 << 24) |
Definition at line 1459 of file rfbproto.h.
#define rfbExtendedClipboard_DIB 8 |
Definition at line 1457 of file rfbproto.h.
#define rfbExtendedClipboard_Files 16 |
Definition at line 1458 of file rfbproto.h.
#define rfbExtendedClipboard_HTML 4 |
Definition at line 1456 of file rfbproto.h.
#define rfbExtendedClipboard_Notify (1 << 27) |
Definition at line 1462 of file rfbproto.h.
#define rfbExtendedClipboard_Peek (1 << 26) |
Definition at line 1461 of file rfbproto.h.
#define rfbExtendedClipboard_Provide (1 << 28) |
Definition at line 1463 of file rfbproto.h.
#define rfbExtendedClipboard_Request (1 << 25) |
Definition at line 1460 of file rfbproto.h.
#define rfbExtendedClipboard_RTF 2 |
Definition at line 1455 of file rfbproto.h.
#define rfbExtendedClipboard_Text 1 |
Definition at line 1454 of file rfbproto.h.
#define rfbFileAcceptHeader 9 /* The server accepts or rejects the file */ |
Definition at line 1051 of file rfbproto.h.
#define rfbFileChecksums 12 /* The zipped checksums of the destination file (Delta Transfer) */ |
Definition at line 1054 of file rfbproto.h.
#define rfbFileHeader 4 /* First packet of a file transfer, containing file's features */ |
Definition at line 1046 of file rfbproto.h.
#define rfbFilePacket 5 /* One chunk of the file */ |
Definition at line 1047 of file rfbproto.h.
#define rfbFileTransfer 7 |
Definition at line 422 of file rfbproto.h.
#define rfbFileTransferAccess 14 /* Request FileTransfer authorization */ |
Definition at line 1055 of file rfbproto.h.
#define rfbFileTransferOffer 8 /* The client offers to send a file to the server */ |
Definition at line 1050 of file rfbproto.h.
#define rfbFileTransferRequest 3 /* Client asks the server for the transfer of a given file */ |
Definition at line 1045 of file rfbproto.h.
#define rfbFileTransferVersion 2 /* v1 is the old FT version ( <= 1.0.0 RC18 versions) */ |
Definition at line 1039 of file rfbproto.h.
#define rfbFixColourMapEntries 1 /* not currently supported */ |
Definition at line 415 of file rfbproto.h.
#define rfbFramebufferUpdate 0 |
Definition at line 404 of file rfbproto.h.
#define rfbFramebufferUpdateRequest 3 |
Definition at line 417 of file rfbproto.h.
#define rfbHextileAnySubrects (1 << 3) |
Definition at line 718 of file rfbproto.h.
#define rfbHextileBackgroundSpecified (1 << 1) |
Definition at line 716 of file rfbproto.h.
#define rfbHextileExtractH | ( | byte | ) | (((byte) & 0xf) + 1) |
Definition at line 726 of file rfbproto.h.
#define rfbHextileExtractW | ( | byte | ) | (((byte) >> 4) + 1) |
Definition at line 725 of file rfbproto.h.
#define rfbHextileExtractX | ( | byte | ) | ((byte) >> 4) |
Definition at line 723 of file rfbproto.h.
#define rfbHextileExtractY | ( | byte | ) | ((byte) & 0xf) |
Definition at line 724 of file rfbproto.h.
#define rfbHextileForegroundSpecified (1 << 2) |
Definition at line 717 of file rfbproto.h.
#define rfbHextilePackWH | ( | w, | |
h | |||
) | ((((w)-1) << 4) | ((h)-1)) |
Definition at line 722 of file rfbproto.h.
#define rfbHextileRaw (1 << 0) |
Definition at line 715 of file rfbproto.h.
#define rfbHextileSubrectsColoured (1 << 4) |
Definition at line 719 of file rfbproto.h.
#define rfbHextileZlibHex (1 << 6) |
Definition at line 965 of file rfbproto.h.
#define rfbHextileZlibMono (1 << 7) |
Definition at line 966 of file rfbproto.h.
#define rfbHextileZlibRaw (1 << 5) |
Definition at line 964 of file rfbproto.h.
#define rfbKeyboardMaskAlt 8 |
Definition at line 623 of file rfbproto.h.
#define rfbKeyboardMaskAltGraph 512 |
Definition at line 629 of file rfbproto.h.
#define rfbKeyboardMaskCapsLock 2 |
Definition at line 621 of file rfbproto.h.
#define rfbKeyboardMaskControl 4 |
Definition at line 622 of file rfbproto.h.
#define rfbKeyboardMaskHyper 64 |
Definition at line 626 of file rfbproto.h.
#define rfbKeyboardMaskMeta 16 |
Definition at line 624 of file rfbproto.h.
#define rfbKeyboardMaskNumLock 128 |
Definition at line 627 of file rfbproto.h.
#define rfbKeyboardMaskScrollLock 256 |
Definition at line 628 of file rfbproto.h.
#define rfbKeyboardMaskShift 1 |
Definition at line 620 of file rfbproto.h.
#define rfbKeyboardMaskSuper 32 |
Definition at line 625 of file rfbproto.h.
#define rfbKeyEvent 4 |
Definition at line 418 of file rfbproto.h.
#define rfbMax | ( | a, | |
b | |||
) | (((a)>(b))?(a):(b)) |
Definition at line 92 of file rfbproto.h.
#define rfbMSLogon 0xfffffffa |
Definition at line 306 of file rfbproto.h.
#define rfbNoAuth 1 |
Definition at line 291 of file rfbproto.h.
#define rfbPalmVNCReSizeFrameBuffer 0xF |
Definition at line 410 of file rfbproto.h.
#define rfbPalmVNCSetScaleFactor 0xF |
Definition at line 433 of file rfbproto.h.
#define rfbPF256Colors 1 |
Definition at line 213 of file rfbproto.h.
#define rfbPF2GreyColors 6 |
Definition at line 218 of file rfbproto.h.
#define rfbPF4GreyColors 5 |
Definition at line 217 of file rfbproto.h.
#define rfbPF64Colors 2 |
Definition at line 214 of file rfbproto.h.
#define rfbPF8Colors 3 |
Definition at line 215 of file rfbproto.h.
#define rfbPF8GreyColors 4 |
Definition at line 216 of file rfbproto.h.
#define rfbPFFullColors 0 |
Definition at line 212 of file rfbproto.h.
#define rfbPointerEvent 5 |
Definition at line 419 of file rfbproto.h.
#define rfbProtocolMajorVersion 3 |
Definition at line 253 of file rfbproto.h.
#define rfbProtocolMinorVersion 8 |
Definition at line 254 of file rfbproto.h.
#define rfbProtocolVersionFormat "RFB %03d.%03d\n" |
Definition at line 252 of file rfbproto.h.
#define rfbQemuEvent 255 |
Definition at line 438 of file rfbproto.h.
#define rfbRA2 5 |
Definition at line 294 of file rfbproto.h.
#define rfbRA2ne 6 |
Definition at line 295 of file rfbproto.h.
#define rfbRDirContent 1 /* Request a Server Directory contents */ |
Definition at line 1058 of file rfbproto.h.
#define rfbRDirRecursiveList 3 /* Request a server directory content recursive sorted list */ |
Definition at line 1060 of file rfbproto.h.
#define rfbRDirRecursiveSize 4 /* Request a server directory content recursive size */ |
Definition at line 1061 of file rfbproto.h.
#define rfbRDrivesList 2 /* Request the server's drives list */ |
Definition at line 1059 of file rfbproto.h.
#define rfbRErrorCmd 0xFFFFFFFF/* Error when a command fails on remote side (ret in "size" field) */ |
Definition at line 1086 of file rfbproto.h.
#define rfbRErrorUnknownCmd 1 /* Unknown FileTransfer command. */ |
Definition at line 1085 of file rfbproto.h.
#define rfbResizeFrameBuffer 4 |
Definition at line 409 of file rfbproto.h.
#define rfbSASL 20 |
Definition at line 302 of file rfbproto.h.
#define rfbSecTypeInvalid 0 |
Definition at line 276 of file rfbproto.h.
#define rfbSecTypeNone 1 |
Definition at line 277 of file rfbproto.h.
#define rfbSecTypeVncAuth 2 |
Definition at line 278 of file rfbproto.h.
#define rfbServerCutText 3 |
Definition at line 407 of file rfbproto.h.
#define rfbSetColourMapEntries 1 |
Definition at line 405 of file rfbproto.h.
#define rfbSetDesktopSize 251 |
Definition at line 437 of file rfbproto.h.
#define rfbSetEncodings 2 |
Definition at line 416 of file rfbproto.h.
#define rfbSetPixelFormat 0 |
Definition at line 414 of file rfbproto.h.
#define rfbSetScale 8 |
Definition at line 424 of file rfbproto.h.
#define rfbSetServerInput 9 |
Definition at line 426 of file rfbproto.h.
#define rfbSetSW 10 |
Definition at line 428 of file rfbproto.h.
#define rfbSocket int |
Definition at line 104 of file rfbproto.h.
#define rfbSSPI 7 |
Definition at line 296 of file rfbproto.h.
#define rfbSSPIne 8 |
Definition at line 297 of file rfbproto.h.
#define rfbTextChat 11 |
Definition at line 430 of file rfbproto.h.
#define rfbTextChatClose 0xFFFFFFFE |
Definition at line 1114 of file rfbproto.h.
#define rfbTextChatFinished 0xFFFFFFFD |
Definition at line 1115 of file rfbproto.h.
#define rfbTextChatOpen 0xFFFFFFFF |
Definition at line 1113 of file rfbproto.h.
#define rfbTextMaxSize 4096 |
Definition at line 1112 of file rfbproto.h.
#define rfbTight 16 |
Definition at line 298 of file rfbproto.h.
#define rfbTLS 18 |
Definition at line 300 of file rfbproto.h.
#define rfbUltra 17 |
Definition at line 299 of file rfbproto.h.
#define rfbUltraMSLogonI 0x70 /* UNIMPLEMENTED */ |
Definition at line 304 of file rfbproto.h.
#define rfbUltraMSLogonII 0x71 |
Definition at line 305 of file rfbproto.h.
#define rfbVeNCrypt 19 |
Definition at line 301 of file rfbproto.h.
#define rfbVeNCryptPlain 256 |
Definition at line 308 of file rfbproto.h.
#define rfbVeNCryptTLSNone 257 |
Definition at line 309 of file rfbproto.h.
#define rfbVeNCryptTLSPlain 259 |
Definition at line 311 of file rfbproto.h.
#define rfbVeNCryptTLSSASL 264 |
Definition at line 316 of file rfbproto.h.
#define rfbVeNCryptTLSVNC 258 |
Definition at line 310 of file rfbproto.h.
#define rfbVeNCryptX509None 260 |
Definition at line 312 of file rfbproto.h.
#define rfbVeNCryptX509Plain 262 |
Definition at line 314 of file rfbproto.h.
#define rfbVeNCryptX509SASL 263 |
Definition at line 315 of file rfbproto.h.
#define rfbVeNCryptX509VNC 261 |
Definition at line 313 of file rfbproto.h.
#define rfbVncAuth 2 |
Definition at line 292 of file rfbproto.h.
#define rfbVncAuthFailed 1 |
Definition at line 341 of file rfbproto.h.
#define rfbVncAuthOK 0 |
Definition at line 340 of file rfbproto.h.
#define rfbVncAuthTooMany 2 |
Definition at line 342 of file rfbproto.h.
#define rfbWheelDownMask rfbButton5Mask |
Definition at line 1436 of file rfbproto.h.
#define rfbWheelUpMask rfbButton4Mask |
Definition at line 1435 of file rfbproto.h.
#define rfbXvp 250 |
Definition at line 435 of file rfbproto.h.
#define rfbXvp_Fail 0 |
Definition at line 1149 of file rfbproto.h.
#define rfbXvp_Init 1 |
Definition at line 1150 of file rfbproto.h.
#define rfbXvp_Reboot 3 |
Definition at line 1153 of file rfbproto.h.
#define rfbXvp_Reset 4 |
Definition at line 1154 of file rfbproto.h.
#define rfbXvp_Shutdown 2 |
Definition at line 1152 of file rfbproto.h.
#define rfbZipDirectoryPrefix "!UVNCDIR-\0" /* Transferred directory are zipped in a file with this prefix. Must end with "-" */ |
Definition at line 1089 of file rfbproto.h.
#define rfbZRLETileHeight 64 |
Definition at line 951 of file rfbproto.h.
#define rfbZRLETileWidth 64 |
Definition at line 950 of file rfbproto.h.
#define SOCKET int /* LibVNCServer versions older than 0.9.13 defined this for non-Windows, so keep it here */ |
Definition at line 105 of file rfbproto.h.
#define sz_rfbBellMsg 1 |
Definition at line 1001 of file rfbproto.h.
#define sz_rfbBlockSize 8192 /* Size of a File Transfer packet (before compression) */ |
Definition at line 1088 of file rfbproto.h.
#define sz_rfbCacheRect 2 |
Definition at line 1284 of file rfbproto.h.
#define sz_rfbClientCutTextMsg 8 |
Definition at line 1464 of file rfbproto.h.
#define sz_rfbClientInitMsg 1 |
Definition at line 359 of file rfbproto.h.
#define sz_rfbCopyRect 4 |
Definition at line 641 of file rfbproto.h.
#define sz_rfbCoRRERectangle 4 |
Definition at line 673 of file rfbproto.h.
#define sz_rfbExtDesktopScreen (16) |
Definition at line 1181 of file rfbproto.h.
#define sz_rfbExtDesktopSizeMsg (4) |
Definition at line 1180 of file rfbproto.h.
#define sz_rfbFileTransferMsg 12 |
Definition at line 1037 of file rfbproto.h.
#define sz_rfbFixColourMapEntriesMsg 6 |
Definition at line 1329 of file rfbproto.h.
#define sz_rfbFramebufferUpdateMsg 4 |
Definition at line 564 of file rfbproto.h.
#define sz_rfbFramebufferUpdateRectHeader (sz_rfbRectangle + 4) |
Definition at line 579 of file rfbproto.h.
#define sz_rfbFramebufferUpdateRequestMsg 10 |
Definition at line 1363 of file rfbproto.h.
#define sz_rfbKeyEventMsg 8 |
Definition at line 1404 of file rfbproto.h.
#define sz_rfbPalmVNCReSizeFrameBufferMsg (12) |
Definition at line 1249 of file rfbproto.h.
#define sz_rfbPalmVNCSetScaleFactorMsg (4) |
Definition at line 1495 of file rfbproto.h.
#define sz_rfbPixelFormat 16 |
Definition at line 209 of file rfbproto.h.
#define sz_rfbPointerEventMsg 6 |
Definition at line 1438 of file rfbproto.h.
#define sz_rfbProtocolVersionMsg 12 |
Definition at line 261 of file rfbproto.h.
#define sz_rfbQemuExtendedKeyEventMsg 12 |
Definition at line 1415 of file rfbproto.h.
#define sz_rfbRectangle 8 |
Definition at line 154 of file rfbproto.h.
#define sz_rfbResizeFrameBufferMsg 6 |
Definition at line 1227 of file rfbproto.h.
#define sz_rfbRREHeader 4 |
Definition at line 655 of file rfbproto.h.
#define sz_rfbServerCutTextMsg 8 |
Definition at line 1017 of file rfbproto.h.
#define sz_rfbServerInitMsg (8 + sz_rfbPixelFormat) |
Definition at line 378 of file rfbproto.h.
#define sz_rfbSetColourMapEntriesMsg 6 |
Definition at line 989 of file rfbproto.h.
#define sz_rfbSetDesktopSizeMsg (8) |
Definition at line 1212 of file rfbproto.h.
#define sz_rfbSetEncodingsMsg 4 |
Definition at line 1345 of file rfbproto.h.
#define sz_rfbSetPixelFormatMsg (sz_rfbPixelFormat + 4) |
Definition at line 1308 of file rfbproto.h.
#define sz_rfbSetScaleMsg 4 |
Definition at line 1479 of file rfbproto.h.
#define sz_rfbSetServerInputMsg 4 |
Definition at line 1509 of file rfbproto.h.
#define sz_rfbSetSWMsg 6 |
Definition at line 1523 of file rfbproto.h.
#define sz_rfbSupportedMessages 64 |
Definition at line 593 of file rfbproto.h.
#define sz_rfbTextChatMsg 8 |
Definition at line 1110 of file rfbproto.h.
#define sz_rfbXCursorColors 6 |
Definition at line 922 of file rfbproto.h.
#define sz_rfbXvpMsg (4) |
Definition at line 1146 of file rfbproto.h.
#define sz_rfbZipDirectoryPrefix 9 |
Definition at line 1090 of file rfbproto.h.
#define sz_rfbZlibHeader 4 |
Definition at line 739 of file rfbproto.h.
#define sz_rfbZRLEHeader 4 |
Definition at line 948 of file rfbproto.h.
#define TRUE -1 |
Definition at line 112 of file rfbproto.h.
typedef int8_t rfbBool |
Definition at line 108 of file rfbproto.h.
typedef uint32_t rfbKeySym |
Definition at line 122 of file rfbproto.h.
typedef uint32_t rfbPixel |
Definition at line 123 of file rfbproto.h.
typedef char rfbProtocolVersionMsg[13] |
Definition at line 259 of file rfbproto.h.
char* rfbDecryptPasswdFromFile | ( | char * | fname | ) |
int rfbEncryptAndStorePasswd | ( | char * | passwd, |
char * | fname | ||
) |
void rfbEncryptBytes | ( | unsigned char * | bytes, |
char * | passwd | ||
) |
void rfbRandomBytes | ( | unsigned char * | bytes | ) |