diff options
Diffstat (limited to 'common/rfb/VNCServer.h')
-rw-r--r-- | common/rfb/VNCServer.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/rfb/VNCServer.h b/common/rfb/VNCServer.h index c5335ad2..4f6f0211 100644 --- a/common/rfb/VNCServer.h +++ b/common/rfb/VNCServer.h @@ -26,6 +26,8 @@ #include <rfb/SSecurity.h> #include <rfb/ScreenSet.h> +namespace network { class Socket; } + namespace rfb { class VNCServer : public UpdateTracker { @@ -59,6 +61,14 @@ namespace rfb { // bell() tells the server that it should make all clients make a bell sound. virtual void bell() = 0; + // approveConnection() is called some time after + // SDesktop::queryConnection() has been called, to accept or reject + // the connection. The accept argument should be true for + // acceptance, or false for rejection, in which case a string + // reason may also be given. + virtual void approveConnection(network::Socket* sock, bool accept, + const char* reason = NULL) = 0; + // - Close all currently-connected clients, by calling // their close() method with the supplied reason. virtual void closeClients(const char* reason) = 0; |