summaryrefslogtreecommitdiffstats
path: root/common/rfb/SConnection.cxx
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-04-24 08:44:24 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-04-24 08:44:24 +0000
commit8232831bb4c23d7a544cf97e1d23b724cb83f30a (patch)
tree60ecbe471c1705cabc1e9ca7f857291ecddf8457 /common/rfb/SConnection.cxx
parenta9ad96636f705b0da89ae170df00349523550c97 (diff)
downloadtigervnc-8232831bb4c23d7a544cf97e1d23b724cb83f30a.tar.gz
tigervnc-8232831bb4c23d7a544cf97e1d23b724cb83f30a.zip
Support for VideoRectangleSelection client message in the server code. The message is read but ignored (only a message will be written to stderr).
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2559 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r--common/rfb/SConnection.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx
index bede90e4..2fde9fbb 100644
--- a/common/rfb/SConnection.cxx
+++ b/common/rfb/SConnection.cxx
@@ -46,7 +46,8 @@ SConnection::SConnection(SSecurityFactory* secFact, bool reverseConnection_)
: readyForSetColourMapEntries(false),
is(0), os(0), reader_(0), writer_(0),
security(0), securityFactory(secFact), state_(RFBSTATE_UNINITIALISED),
- reverseConnection(reverseConnection_)
+ reverseConnection(reverseConnection_),
+ m_videoSelectionEnabled(false)
{
defaultMajorVersion = 3;
defaultMinorVersion = 8;
@@ -76,6 +77,11 @@ void SConnection::setStreams(rdr::InStream* is_, rdr::OutStream* os_)
os = os_;
}
+void SConnection::setProtocolOptions(bool enableVideoSelection)
+{
+ m_videoSelectionEnabled = enableVideoSelection;
+}
+
void SConnection::initialiseProtocol()
{
cp.writeVersion(os);
@@ -464,10 +470,16 @@ void SConnection::sendInteractionCaps()
ccaps.addTightExt(msgTypeFileDeleteRequest, "FTC_RMRQ");
*/
- // Continuous updates:
ccaps.addTightExt(msgTypeEnableContinuousUpdates, "CUC_ENCU");
+ if (m_videoSelectionEnabled) {
+ ccaps.addTightExt(msgTypeVideoRectangleSelection, "VRECTSEL");
+ }
+
+ //
// Advertise all supported encoding types (except raw encoding).
+ //
+
CapsList ecaps;
// First, add true encodings.