Mon 21 Jul 22:43:21 CEST 2025

This commit is contained in:
sbosse 2025-07-21 23:06:34 +02:00
parent 9d1f5033fa
commit da7dc9d135

View File

@ -0,0 +1,53 @@
// based on https://github.com/substack/node-rfb
exports.clientMsgTypes = {
setPixelFormat : 0,
setEncodings : 2,
fbUpdate : 3,
keyEvent : 4,
pointerEvent : 5,
cutText : 6,
};
exports.serverMsgTypes = {
fbUpdate : 0,
setColorMap : 1,
bell: 2,
cutText: 3,
};
exports.versionstring = {
V3_003: 'RFB 003.003\n',
V3_007: 'RFB 003.007\n',
V3_008: 'RFB 003.008\n'
};
exports.encodings = {
raw : 0,
copyRect : 1,
rre : 2,
hextile : 5,
zrle : 16,
pseudoCursor : -239,
pseudoDesktopSize : -223,
};
exports.subEncodings = {
};
exports.subEncodings.hextile = {
raw: 1,
backgroundSpecified: 2,
foregroundSpecified: 4,
anySubrects: 8,
subrectsColored: 16
}
exports.security = {
None: 1,
VNC: 2
};
exports.connectionFlag = {
Exclusive: 0,
Shared: 1
}