diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-10-08 15:59:02 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-10-10 13:15:30 +0200 |
commit | 7d64b33b5b96a20216a2e1425ff412e027bbebcd (patch) | |
tree | e015b5ac35991b3bc4009a57ccb0b9fd5939a63b /common/rfb/VNCServerST.h | |
parent | 07e44cc508133d874767204d2f96407b0b713bb5 (diff) | |
download | tigervnc-7d64b33b5b96a20216a2e1425ff412e027bbebcd.tar.gz tigervnc-7d64b33b5b96a20216a2e1425ff412e027bbebcd.zip |
Move access rights and closing to SConnection object
This makes it generally useful and other code doesn't have to
know of the specific sub-class.
Diffstat (limited to 'common/rfb/VNCServerST.h')
-rw-r--r-- | common/rfb/VNCServerST.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h index 54443e1f..0fa2c875 100644 --- a/common/rfb/VNCServerST.h +++ b/common/rfb/VNCServerST.h @@ -99,6 +99,7 @@ namespace rfb { virtual void approveConnection(network::Socket* sock, bool accept, const char* reason); virtual void closeClients(const char* reason) {closeClients(reason, 0);} + virtual SConnection* getConnection(network::Socket* sock); virtual void add_changed(const Region ®ion); virtual void add_copied(const Region &dest, const Point &delta); @@ -133,11 +134,6 @@ namespace rfb { // any), and logs the specified reason for closure. void closeClients(const char* reason, network::Socket* sock); - // getSConnection() gets the SConnection for a particular Socket. If - // the Socket is not recognised then null is returned. - - SConnection* getSConnection(network::Socket* sock); - // queryConnection() is called when a connection has been // successfully authenticated. The sock and userName arguments identify // the socket and the name of the authenticated user, if any. |