aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CConnection.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-06-20 07:03:10 +0200
committerPierre Ossman <ossman@cendio.se>2018-11-01 16:11:42 +0100
commit2affd7753274ddf3b93505f0ae26af3c45aa3fec (patch)
treec5b54568a87386f30221dd5e7f6771ac6ced44db /common/rfb/CConnection.h
parent2fae5cf0655811b818108df239ebcbe3ea79cee3 (diff)
downloadtigervnc-2affd7753274ddf3b93505f0ae26af3c45aa3fec.tar.gz
tigervnc-2affd7753274ddf3b93505f0ae26af3c45aa3fec.zip
Stop requiring CConnection::serverInit() to be overridden
Add an explicit callback for subclasses to do their startup in. This makes it easier to do proper ordering, and avoids mistakes.
Diffstat (limited to 'common/rfb/CConnection.h')
-rw-r--r--common/rfb/CConnection.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/rfb/CConnection.h b/common/rfb/CConnection.h
index 1e66a641..c996ecf4 100644
--- a/common/rfb/CConnection.h
+++ b/common/rfb/CConnection.h
@@ -100,6 +100,8 @@ namespace rfb {
int w, int h,
const ScreenSet& layout);
+ virtual void serverInit();
+
virtual void readAndDecodeRect(const Rect& r, int encoding,
ModifiablePixelBuffer* pb);
@@ -113,9 +115,11 @@ namespace rfb {
// authSuccess() is called when authentication has succeeded.
virtual void authSuccess();
- // serverInit() is called when the ServerInit message is received. The
- // derived class must call on to CConnection::serverInit().
- virtual void serverInit();
+ // initDone() is called when the connection is fully established
+ // and standard messages can be sent. This is called before the
+ // initial FramebufferUpdateRequest giving a derived class the
+ // chance to modify pixel format and settings.
+ virtual void initDone();
// Other methods