forked from ayunami2000/vnc-rfb-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.js
48 lines (46 loc) · 965 Bytes
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// based on https://github.com/sidorares/node-rfb2
const consts = {
clientMsgTypes: {
setPixelFormat: 0,
setEncodings: 2,
fbUpdate: 3,
keyEvent: 4,
pointerEvent: 5,
cutText: 6,
qemuAudio: 255,
},
serverMsgTypes: {
fbUpdate: 0,
setColorMap: 1,
bell: 2,
cutText: 3,
qemuAudio: 255,
},
versionString: {
V3_003: 'RFB 003.003\n',
V3_007: 'RFB 003.007\n',
V3_008: 'RFB 003.008\n'
},
encodings: {
raw: 0,
copyRect: 1,
rre: 2,
corre: 4,
hextile: 5,
zlib: 6,
tight: 7,
zlibhex: 8,
trle: 15,
zrle: 16,
h264: 50,
pseudoCursor: -239,
pseudoDesktopSize: -223,
pseudoQemuPointerMotionChange: -257,
pseudoQemuAudio: -259,
},
security: {
None: 1,
VNC: 2
}
}
module.exports = consts;