mirror of
https://github.com/danbulant/node-x11
synced 2026-06-13 19:52:22 +00:00
added vnc constants module
This commit is contained in:
parent
f8406e4da9
commit
9560f967dc
1 changed files with 36 additions and 0 deletions
36
examples/vncviewer/constants.js
Normal file
36
examples/vncviewer/constants.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
// 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.encodings = {
|
||||
raw : 0,
|
||||
copyRect : 1,
|
||||
rre : 2,
|
||||
hextile : 5,
|
||||
zrle : 16,
|
||||
pseudoCursor : -239,
|
||||
pseudoDesktopSize : -223,
|
||||
};
|
||||
|
||||
exports.security = {
|
||||
None: 1,
|
||||
VNC: 2
|
||||
};
|
||||
|
||||
exports.connectionFlag = {
|
||||
Exclusive: 0,
|
||||
Shared: 1
|
||||
}
|
||||
Loading…
Reference in a new issue