Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 1 | /* 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 | |
| 29 | rfb::IntParameter rfb::Server::idleTimeout |
| 30 | ("IdleTimeout", |
| 31 | "The number of seconds after which an idle VNC connection will be dropped", |
Peter Åstrand | d55816b | 2005-02-14 12:54:59 +0000 | [diff] [blame^] | 32 | 0); |
Constantin Kaplinsky | 47ed8d3 | 2004-10-08 09:43:57 +0000 | [diff] [blame] | 33 | rfb::IntParameter rfb::Server::clientWaitTimeMillis |
| 34 | ("ClientWaitTimeMillis", |
| 35 | "The number of milliseconds to wait for a client which is no longer " |
| 36 | "responding", |
| 37 | 20000); |
| 38 | rfb::StringParameter rfb::Server::sec_types |
| 39 | ("SecurityTypes", |
| 40 | "Specify which security scheme to use for incoming connections (None, VncAuth)", |
| 41 | "VncAuth"); |
| 42 | rfb::StringParameter rfb::Server::rev_sec_types |
| 43 | ("ReverseSecurityTypes", |
| 44 | "Specify encryption scheme to use for reverse connections (None)", |
| 45 | "None"); |
| 46 | rfb::BoolParameter rfb::Server::compareFB |
| 47 | ("CompareFB", |
| 48 | "Perform pixel comparison on framebuffer to reduce unnecessary updates", |
| 49 | true); |
| 50 | rfb::BoolParameter rfb::Server::protocol3_3 |
| 51 | ("Protocol3.3", |
| 52 | "Always use protocol version 3.3 for backwards compatibility with " |
| 53 | "badly-behaved clients", |
| 54 | false); |
| 55 | rfb::BoolParameter rfb::Server::alwaysShared |
| 56 | ("AlwaysShared", |
| 57 | "Always treat incoming connections as shared, regardless of the client-" |
| 58 | "specified setting", |
| 59 | false); |
| 60 | rfb::BoolParameter rfb::Server::neverShared |
| 61 | ("NeverShared", |
| 62 | "Never treat incoming connections as shared, regardless of the client-" |
| 63 | "specified setting", |
| 64 | false); |
| 65 | rfb::BoolParameter rfb::Server::disconnectClients |
| 66 | ("DisconnectClients", |
| 67 | "Disconnect existing clients if an incoming connection is non-shared. " |
| 68 | "If combined with NeverShared then new connections will be refused " |
| 69 | "while there is a client active", |
| 70 | true); |
| 71 | rfb::BoolParameter rfb::Server::acceptKeyEvents |
| 72 | ("AcceptKeyEvents", |
| 73 | "Accept key press and release events from clients.", |
| 74 | true); |
| 75 | rfb::BoolParameter rfb::Server::acceptPointerEvents |
| 76 | ("AcceptPointerEvents", |
| 77 | "Accept pointer press and release events from clients.", |
| 78 | true); |
| 79 | rfb::BoolParameter rfb::Server::acceptCutText |
| 80 | ("AcceptCutText", |
| 81 | "Accept clipboard updates from clients.", |
| 82 | true); |
| 83 | rfb::BoolParameter rfb::Server::sendCutText |
| 84 | ("SendCutText", |
| 85 | "Send clipboard changes to clients.", |
| 86 | true); |
| 87 | rfb::BoolParameter rfb::Server::queryConnect |
| 88 | ("QueryConnect", |
| 89 | "Prompt the local user to accept or reject incoming connections.", |
| 90 | false); |
| 91 | rfb::IntParameter rfb::Server::blacklistLevel |
| 92 | ("BlacklistLevel", |
| 93 | "When to test whether particular host should be blacklisted. (0 = Never, " |
| 94 | "1 = Test before authentication, 2 = Test on connect)", |
| 95 | 1); |