aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/ZRLEDecoder.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2020-05-14 18:49:39 +0200
committerPierre Ossman <ossman@cendio.se>2020-05-21 12:59:02 +0200
commitad0f0618fa2ca13d7b916f22eccc5ba3201482cb (patch)
tree55b84c52f8ab0e7ebe672458471e4577afddc1b9 /common/rfb/ZRLEDecoder.h
parentc0dac220de0186a879f1f71966a2848000f69a48 (diff)
downloadtigervnc-ad0f0618fa2ca13d7b916f22eccc5ba3201482cb.tar.gz
tigervnc-ad0f0618fa2ca13d7b916f22eccc5ba3201482cb.zip
Change streams to be asynchronous
Major restructuring of how streams work. Neither input nor output streams are now blocking. This avoids stalling the rest of the client or server when a peer is slow or unresponsive. Note that this puts an extra burden on users of streams to make sure they are allowed to do their work once the underlying transports are ready (e.g. monitoring fds).
Diffstat (limited to 'common/rfb/ZRLEDecoder.h')
-rw-r--r--common/rfb/ZRLEDecoder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ZRLEDecoder.h b/common/rfb/ZRLEDecoder.h
index a530586e..115f8fb8 100644
--- a/common/rfb/ZRLEDecoder.h
+++ b/common/rfb/ZRLEDecoder.h
@@ -27,7 +27,7 @@ namespace rfb {
public:
ZRLEDecoder();
virtual ~ZRLEDecoder();
- virtual void readRect(const Rect& r, rdr::InStream* is,
+ virtual bool readRect(const Rect& r, rdr::InStream* is,
const ServerParams& server, rdr::OutStream* os);
virtual void decodeRect(const Rect& r, const void* buffer,
size_t buflen, const ServerParams& server,