diff options
author | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-05 12:34:59 +0000 |
---|---|---|
committer | Constantin Kaplinsky <const@tightvnc.com> | 2008-06-05 12:34:59 +0000 |
commit | a77e818d9b4db8794b7a051118a0542de660a857 (patch) | |
tree | 5b065169be59eee819557cf6357beb1ccd79f236 /common/rfb/VNCSConnectionST.cxx | |
parent | 67ebf00acc436b3bd8bcd9615d8b8610b91b0f09 (diff) | |
download | tigervnc-a77e818d9b4db8794b7a051118a0542de660a857.tar.gz tigervnc-a77e818d9b4db8794b7a051118a0542de660a857.zip |
Removed support for continuous updates, a TightVNC-specific RFB protocol
extension. That extension used to send framebuffer updates continuously, not
waiting for clients' requests. However, it showed bad results with
low-bandwidth connections, due to lack of proper data flow control.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2581 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/VNCSConnectionST.cxx')
-rw-r--r-- | common/rfb/VNCSConnectionST.cxx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 7c922cfe..95b99fdd 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -35,7 +35,6 @@ VNCSConnectionST::VNCSConnectionST(VNCServerST* server_, network::Socket *s, : SConnection(server_->securityFactory, reverse), sock(s), server(server_), updates(false), image_getter(server->useEconomicTranslate), drawRenderedCursor(false), removeRenderedCursor(false), - autoUpdatesActive(false), pointerEventTime(0), accessRights(AccessDefault), startTime(time(0)), m_pFileTransfer(0) { @@ -482,35 +481,6 @@ void VNCSConnectionST::framebufferUpdateRequest(const Rect& r,bool incremental) writeFramebufferUpdate(); } -void VNCSConnectionST::enableContinuousUpdates(const Rect& r) -{ - // TightVNC-specific EnableContinuousUpdates message is very much like - // incremental FramebufferUpdateRequest. So here we copy some code from - // VNCSConnectionST::framebufferUpdateRequest(). - - if (!(accessRights & AccessView)) return; - - SConnection::framebufferUpdateRequest(r, true); - - autoUpdatesActive = true; - autoUpdatedRect = r; - - Region reqRgn(autoUpdatedRect); - requested.assign_union(reqRgn); - - writeFramebufferUpdate(); -} - -void VNCSConnectionST::disableContinuousUpdates() -{ - autoUpdatesActive = false; - autoUpdatedRect.clear(); - - writeFramebufferUpdate(); - - // FIXME: Send EndOfContinuousUpdates message. -} - void VNCSConnectionST::setInitialColourMap() { setColourMapEntries(0, 0); @@ -679,15 +649,6 @@ void VNCSConnectionST::writeFramebufferUpdate() if (drawRenderedCursor) writeRenderedCursorRect(); writer()->writeFramebufferUpdateEnd(); - resetRequestedRegion(); - } -} - -void VNCSConnectionST::resetRequestedRegion() -{ - if (autoUpdatesActive) { - requested.reset(autoUpdatedRect); - } else { requested.clear(); } } |