diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-31 12:37:32 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:50:28 +0200 |
commit | 668468b3d43d5ea1562ebc0be8de0c98c5601a60 (patch) | |
tree | 80bbb90fb5f00335a7e85c297eadd40b0780dc92 /common/rfb/TightDecoder.cxx | |
parent | fdba3fe884d5b43e07d7d49033c83f2f11bf524c (diff) | |
download | tigervnc-668468b3d43d5ea1562ebc0be8de0c98c5601a60.tar.gz tigervnc-668468b3d43d5ea1562ebc0be8de0c98c5601a60.zip |
Encoders/decoders should track the connection object
The connection object is a much more appropriate object for the
decoders and encoders to keep track of. Besides the streams, it also
contains state like connection parameters.
Diffstat (limited to 'common/rfb/TightDecoder.cxx')
-rw-r--r-- | common/rfb/TightDecoder.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/rfb/TightDecoder.cxx b/common/rfb/TightDecoder.cxx index a317d250..bfc3352b 100644 --- a/common/rfb/TightDecoder.cxx +++ b/common/rfb/TightDecoder.cxx @@ -18,6 +18,7 @@ * USA. */ #include <rfb/CMsgReader.h> +#include <rfb/CConnection.h> #include <rfb/CMsgHandler.h> #include <rfb/TightDecoder.h> @@ -35,7 +36,7 @@ using namespace rfb; #include <rfb/tightDecode.h> #undef BPP -TightDecoder::TightDecoder(CMsgReader* reader) : Decoder(reader) +TightDecoder::TightDecoder(CConnection* conn) : Decoder(conn) { } @@ -45,7 +46,7 @@ TightDecoder::~TightDecoder() void TightDecoder::readRect(const Rect& r, CMsgHandler* handler) { - is = reader->getInStream(); + is = conn->getInStream(); this->handler = handler; clientpf = handler->getPreferredPF(); serverpf = handler->cp.pf(); |