]> source.dussan.org Git - tigervnc.git/commitdiff
Give subclasses the ability to overwrite the reader and writer
authorPierre Ossman <ossman@cendio.se>
Wed, 4 Feb 2015 13:10:43 +0000 (14:10 +0100)
committerPierre Ossman <ossman@cendio.se>
Fri, 13 Feb 2015 10:13:40 +0000 (11:13 +0100)
Needed for some tests.

common/rfb/CConnection.h
common/rfb/SConnection.h

index 8bd886aa34d77f25558acfa4d4ba502c02701382..0109fe863ad1f693a54d7d8b01cf542bdad456c3 100644 (file)
@@ -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.
index da38b3e098406ede6e9b8e04a52d5e2b5f4737b4..fd6d26348a1600850cfa4b2c40e16b865400f9ca 100644 (file)
@@ -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);