blob: fe61ecbd8b6fd1e516004c20a1df7155b6ea8022 [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001/* Copyright (C) 2002-2004 RealVNC Ltd. All Rights Reserved.
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18
19// -=- ServerCore.cxx
20
21// This header will define the Server interface, from which ServerMT and
22// ServerST will be derived.
23
24#include <string.h>
25#include <rfb/util.h>
26#include <rfb/ServerCore.h>
27#include <rfb/vncAuth.h>
28
29rfb::IntParameter rfb::Server::idleTimeout
30("IdleTimeout",
31 "The number of seconds after which an idle VNC connection will be dropped",
Peter Åstrandd55816b2005-02-14 12:54:59 +000032 0);
Peter Åstrand43aa1a12005-02-21 09:58:31 +000033
34rfb::IntParameter rfb::Server::maxDisconnectionTime
35("MaxDisconnectionTime",
36 "Terminate when no client has been connected for s seconds",
37 0);
38rfb::IntParameter rfb::Server::maxConnectionTime
39("MaxConnectionTime",
40 "Terminate when a client has been connected for s seconds",
41 0);
42rfb::IntParameter rfb::Server::maxIdleTime
43("MaxIdleTime",
44 "Terminate after s seconds of user inactivity",
45 0);
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000046rfb::IntParameter rfb::Server::clientWaitTimeMillis
47("ClientWaitTimeMillis",
48 "The number of milliseconds to wait for a client which is no longer "
49 "responding",
50 20000);
51rfb::StringParameter rfb::Server::sec_types
52("SecurityTypes",
53 "Specify which security scheme to use for incoming connections (None, VncAuth)",
54 "VncAuth");
55rfb::StringParameter rfb::Server::rev_sec_types
56("ReverseSecurityTypes",
57 "Specify encryption scheme to use for reverse connections (None)",
58 "None");
59rfb::BoolParameter rfb::Server::compareFB
60("CompareFB",
61 "Perform pixel comparison on framebuffer to reduce unnecessary updates",
62 true);
63rfb::BoolParameter rfb::Server::protocol3_3
64("Protocol3.3",
65 "Always use protocol version 3.3 for backwards compatibility with "
66 "badly-behaved clients",
67 false);
68rfb::BoolParameter rfb::Server::alwaysShared
69("AlwaysShared",
70 "Always treat incoming connections as shared, regardless of the client-"
71 "specified setting",
72 false);
73rfb::BoolParameter rfb::Server::neverShared
74("NeverShared",
75 "Never treat incoming connections as shared, regardless of the client-"
76 "specified setting",
77 false);
78rfb::BoolParameter rfb::Server::disconnectClients
79("DisconnectClients",
80 "Disconnect existing clients if an incoming connection is non-shared. "
81 "If combined with NeverShared then new connections will be refused "
82 "while there is a client active",
83 true);
84rfb::BoolParameter rfb::Server::acceptKeyEvents
85("AcceptKeyEvents",
86 "Accept key press and release events from clients.",
87 true);
88rfb::BoolParameter rfb::Server::acceptPointerEvents
89("AcceptPointerEvents",
90 "Accept pointer press and release events from clients.",
91 true);
92rfb::BoolParameter rfb::Server::acceptCutText
93("AcceptCutText",
94 "Accept clipboard updates from clients.",
95 true);
96rfb::BoolParameter rfb::Server::sendCutText
97("SendCutText",
98 "Send clipboard changes to clients.",
99 true);
100rfb::BoolParameter rfb::Server::queryConnect
101("QueryConnect",
102 "Prompt the local user to accept or reject incoming connections.",
103 false);
104rfb::IntParameter rfb::Server::blacklistLevel
105("BlacklistLevel",
106 "When to test whether particular host should be blacklisted. (0 = Never, "
107 "1 = Test before authentication, 2 = Test on connect)",
108 1);