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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. #include <string.h>
  22. #include <rfb/util.h>
  23. #include <rfb/ServerCore.h>
  24. rfb::IntParameter rfb::Server::idleTimeout
  25. ("IdleTimeout",
  26. "The number of seconds after which an idle VNC connection will be dropped "
  27. "(zero means no timeout)",
  28. 0, 0);
  29. rfb::IntParameter rfb::Server::maxDisconnectionTime
  30. ("MaxDisconnectionTime",
  31. "Terminate when no client has been connected for s seconds",
  32. 0, 0);
  33. rfb::IntParameter rfb::Server::maxConnectionTime
  34. ("MaxConnectionTime",
  35. "Terminate when a client has been connected for s seconds",
  36. 0, 0);
  37. rfb::IntParameter rfb::Server::maxIdleTime
  38. ("MaxIdleTime",
  39. "Terminate after s seconds of user inactivity",
  40. 0, 0);
  41. rfb::IntParameter rfb::Server::compareFB
  42. ("CompareFB",
  43. "Perform pixel comparison on framebuffer to reduce unnecessary updates "
  44. "(0: never, 1: always, 2: auto)",
  45. 2);
  46. rfb::IntParameter rfb::Server::frameRate
  47. ("FrameRate",
  48. "The maximum number of updates per second sent to each client",
  49. 60);
  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::acceptSetDesktopSize
  88. ("AcceptSetDesktopSize",
  89. "Accept set desktop size events from clients.",
  90. true);
  91. rfb::BoolParameter rfb::Server::queryConnect
  92. ("QueryConnect",
  93. "Prompt the local user to accept or reject incoming connections.",
  94. false);