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.
diff --git a/common/rfb/VNCServer.h b/common/rfb/VNCServer.h
index 2987ec0..5bb7c0b 100644
--- a/common/rfb/VNCServer.h
+++ b/common/rfb/VNCServer.h
@@ -73,6 +73,10 @@
// their close() method with the supplied reason.
virtual void closeClients(const char* reason) = 0;
+ // getConnection() gets the SConnection for a particular Socket. If
+ // the Socket is not recognised then null is returned.
+ virtual SConnection* getConnection(network::Socket* sock) = 0;
+
// setCursor() tells the server that the cursor has changed. The
// cursorData argument contains width*height rgba quadruplets with
// non-premultiplied alpha.