diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-10-11 07:54:12 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-11-09 17:16:04 +0100 |
commit | 2ebed0d70dedcc7ab42071fe751f69245e46913f (patch) | |
tree | cfa95451bce2c2abea2198a70febcf7f521ba8a7 /common/rfb/SConnection.h | |
parent | 4bba2467fbd9279b71d962c10399e9a35c9a05ec (diff) | |
download | tigervnc-2ebed0d70dedcc7ab42071fe751f69245e46913f.tar.gz tigervnc-2ebed0d70dedcc7ab42071fe751f69245e46913f.zip |
Make throwConnFailedException() protected
It is an internal function so it has no business being public.
Compare with CConnection where it is already private.
Diffstat (limited to 'common/rfb/SConnection.h')
-rw-r--r-- | common/rfb/SConnection.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h index 92ddff71..26302403 100644 --- a/common/rfb/SConnection.h +++ b/common/rfb/SConnection.h @@ -149,11 +149,6 @@ namespace rfb { bool authenticated() { return (state_ == RFBSTATE_INITIALISATION || state_ == RFBSTATE_NORMAL); } - // throwConnFailedException() prints a message to the log, sends a conn - // failed message to the client (if possible) and throws a - // ConnFailedException. - void throwConnFailedException(const char* format, ...) __printf_attr(2, 3); - SMsgReader* reader() { return reader_; } SMsgWriter* writer() { return writer_; } @@ -177,6 +172,11 @@ namespace rfb { rdr::S32 getPreferredEncoding() { return preferredEncoding; } protected: + // throwConnFailedException() prints a message to the log, sends a conn + // failed message to the client (if possible) and throws a + // ConnFailedException. + void throwConnFailedException(const char* format, ...) __printf_attr(2, 3); + void setState(stateEnum s) { state_ = s; } void setReader(SMsgReader *r) { reader_ = r; } |