You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ServerCore.cxx 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /* Copyright (C) 2002-2005 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. // -=- ServerCore.cxx
  19. // This header will define the Server interface, from which ServerMT and
  20. // ServerST will be derived.
  21. #ifdef HAVE_CONFIG_H
  22. #include <config.h>
  23. #endif
  24. #include <string.h>
  25. #include <rfb/util.h>
  26. #include <rfb/ServerCore.h>
  27. rfb::IntParameter rfb::Server::idleTimeout
  28. ("IdleTimeout",
  29. "The number of seconds after which an idle VNC connection will be dropped "
  30. "(zero means no timeout)",
  31. 0, 0);
  32. rfb::IntParameter rfb::Server::maxDisconnectionTime
  33. ("MaxDisconnectionTime",
  34. "Terminate when no client has been connected for s seconds",
  35. 0, 0);
  36. rfb::IntParameter rfb::Server::maxConnectionTime
  37. ("MaxConnectionTime",
  38. "Terminate when a client has been connected for s seconds",
  39. 0, 0);
  40. rfb::IntParameter rfb::Server::maxIdleTime
  41. ("MaxIdleTime",
  42. "Terminate after s seconds of user inactivity",
  43. 0, 0);
  44. rfb::IntParameter rfb::Server::compareFB
  45. ("CompareFB",
  46. "Perform pixel comparison on framebuffer to reduce unnecessary updates "
  47. "(0: never, 1: always, 2: auto)",
  48. 2);
  49. rfb::IntParameter rfb::Server::frameRate
  50. ("FrameRate",
  51. "The maximum number of updates per second sent to each client",
  52. 60);
  53. rfb::BoolParameter rfb::Server::protocol3_3
  54. ("Protocol3.3",
  55. "Always use protocol version 3.3 for backwards compatibility with "
  56. "badly-behaved clients",
  57. false);
  58. rfb::BoolParameter rfb::Server::alwaysShared
  59. ("AlwaysShared",
  60. "Always treat incoming connections as shared, regardless of the client-"
  61. "specified setting",
  62. false);
  63. rfb::BoolParameter rfb::Server::neverShared
  64. ("NeverShared",
  65. "Never treat incoming connections as shared, regardless of the client-"
  66. "specified setting",
  67. false);
  68. rfb::BoolParameter rfb::Server::disconnectClients
  69. ("DisconnectClients",
  70. "Disconnect existing clients if an incoming connection is non-shared. "
  71. "If combined with NeverShared then new connections will be refused "
  72. "while there is a client active",
  73. true);
  74. rfb::BoolParameter rfb::Server::acceptKeyEvents
  75. ("AcceptKeyEvents",
  76. "Accept key press and release events from clients.",
  77. true);
  78. rfb::BoolParameter rfb::Server::acceptPointerEvents
  79. ("AcceptPointerEvents",
  80. "Accept pointer press and release events from clients.",
  81. true);
  82. rfb::BoolParameter rfb::Server::acceptCutText
  83. ("AcceptCutText",
  84. "Accept clipboard updates from clients.",
  85. true);
  86. rfb::BoolParameter rfb::Server::sendCutText
  87. ("SendCutText",
  88. "Send clipboard changes to clients.",
  89. true);
  90. rfb::BoolParameter rfb::Server::acceptSetDesktopSize
  91. ("AcceptSetDesktopSize",
  92. "Accept set desktop size events from clients.",
  93. true);
  94. rfb::BoolParameter rfb::Server::queryConnect
  95. ("QueryConnect",
  96. "Prompt the local user to accept or reject incoming connections.",
  97. false);