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

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