blob: 750daae20265f4ec5c804ba0d6f3710cfd344003 [file] [log] [blame]
Constantin Kaplinskyde179d42006-04-16 06:53:44 +00001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
2 *
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003 * 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>
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000027
28rfb::IntParameter rfb::Server::idleTimeout
29("IdleTimeout",
Constantin Kaplinskyde179d42006-04-16 06:53:44 +000030 "The number of seconds after which an idle VNC connection will be dropped "
31 "(zero means no timeout)",
32 0, 0);
Peter Åstrand43aa1a12005-02-21 09:58:31 +000033rfb::IntParameter rfb::Server::maxDisconnectionTime
34("MaxDisconnectionTime",
35 "Terminate when no client has been connected for s seconds",
Constantin Kaplinskyde179d42006-04-16 06:53:44 +000036 0, 0);
Peter Åstrand43aa1a12005-02-21 09:58:31 +000037rfb::IntParameter rfb::Server::maxConnectionTime
38("MaxConnectionTime",
39 "Terminate when a client has been connected for s seconds",
Constantin Kaplinskyde179d42006-04-16 06:53:44 +000040 0, 0);
Peter Åstrand43aa1a12005-02-21 09:58:31 +000041rfb::IntParameter rfb::Server::maxIdleTime
42("MaxIdleTime",
43 "Terminate after s seconds of user inactivity",
Constantin Kaplinskyde179d42006-04-16 06:53:44 +000044 0, 0);
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000045rfb::IntParameter rfb::Server::clientWaitTimeMillis
46("ClientWaitTimeMillis",
47 "The number of milliseconds to wait for a client which is no longer "
48 "responding",
Constantin Kaplinskyde179d42006-04-16 06:53:44 +000049 20000, 0);
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000050rfb::BoolParameter rfb::Server::compareFB
51("CompareFB",
52 "Perform pixel comparison on framebuffer to reduce unnecessary updates",
53 true);
54rfb::BoolParameter rfb::Server::protocol3_3
55("Protocol3.3",
56 "Always use protocol version 3.3 for backwards compatibility with "
57 "badly-behaved clients",
58 false);
59rfb::BoolParameter rfb::Server::alwaysShared
60("AlwaysShared",
61 "Always treat incoming connections as shared, regardless of the client-"
62 "specified setting",
63 false);
64rfb::BoolParameter rfb::Server::neverShared
65("NeverShared",
66 "Never treat incoming connections as shared, regardless of the client-"
67 "specified setting",
68 false);
69rfb::BoolParameter rfb::Server::disconnectClients
70("DisconnectClients",
71 "Disconnect existing clients if an incoming connection is non-shared. "
72 "If combined with NeverShared then new connections will be refused "
73 "while there is a client active",
74 true);
75rfb::BoolParameter rfb::Server::acceptKeyEvents
76("AcceptKeyEvents",
77 "Accept key press and release events from clients.",
78 true);
79rfb::BoolParameter rfb::Server::acceptPointerEvents
80("AcceptPointerEvents",
81 "Accept pointer press and release events from clients.",
82 true);
83rfb::BoolParameter rfb::Server::acceptCutText
84("AcceptCutText",
85 "Accept clipboard updates from clients.",
86 true);
87rfb::BoolParameter rfb::Server::sendCutText
88("SendCutText",
89 "Send clipboard changes to clients.",
90 true);
91rfb::BoolParameter rfb::Server::queryConnect
92("QueryConnect",
93 "Prompt the local user to accept or reject incoming connections.",
94 false);