forked from mgechev/node-rfb2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
54 lines (47 loc) · 896 Bytes
/
constants.js
File metadata and controls
54 lines (47 loc) · 896 Bytes
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
49
50
51
52
53
54
// 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,
ARD: 30 // apple remote desktop
};
exports.connectionFlag = {
Exclusive: 0,
Shared: 1
}