aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-02-04 14:10:43 +0100
committerPierre Ossman <ossman@cendio.se>2015-02-13 11:13:40 +0100
commit0144c5335327aa27b9ba0435988c08ffadc20ad0 (patch)
treee9e183f064b842348b478099021da664416dd919
parentb7acf86aa9d4d5247ab7b05148fbbdb5e9bee966 (diff)
downloadtigervnc-0144c5335327aa27b9ba0435988c08ffadc20ad0.tar.gz
tigervnc-0144c5335327aa27b9ba0435988c08ffadc20ad0.zip
Give subclasses the ability to overwrite the reader and writer
Needed for some tests.
-rw-r--r--common/rfb/CConnection.h3
-rw-r--r--common/rfb/SConnection.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h
index 8bd886aa..0109fe86 100644
--- a/common/rfb/CConnection.h
+++ b/common/rfb/CConnection.h
@@ -136,6 +136,9 @@ namespace rfb {
protected:
void setState(stateEnum s) { state_ = s; }
+ void setReader(CMsgReader *r) { reader_ = r; }
+ void setWriter(CMsgWriter *w) { writer_ = w; }
+
private:
// This is a default implementation of fences that automatically
// responds to requests, stating no support for synchronisation.
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h
index da38b3e0..fd6d2634 100644
--- a/common/rfb/SConnection.h
+++ b/common/rfb/SConnection.h
@@ -184,6 +184,9 @@ namespace rfb {
protected:
void setState(stateEnum s) { state_ = s; }
+ void setReader(SMsgReader *r) { reader_ = r; }
+ void setWriter(SMsgWriter *w) { writer_ = w; }
+
private:
void writeFakeColourMap(void);