Make throwConnFailedException() protected
It is an internal function so it has no business being public.
Compare with CConnection where it is already private.
diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h
index 92ddff7..2630240 100644
--- a/common/rfb/SConnection.h
+++ b/common/rfb/SConnection.h
@@ -149,11 +149,6 @@
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 @@
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; }