It should be using the safe wrappers for everything so make sure it
cannot bypass those and call the SConnection methods directly.
namespace rfb {
class VNCServerST;
- class VNCSConnectionST : public SConnection,
+ class VNCSConnectionST : private SConnection,
public Timer::Callback {
public:
VNCSConnectionST(VNCServerST* server_, network::Socket* s, bool reverse);
virtual bool accessCheck(AccessRights ar) const;
virtual void close(const char* reason);
+ using SConnection::authenticated;
+
// Methods called from VNCServerST. None of these methods ever knowingly
// throw an exception.
std::list<VNCSConnectionST*>::iterator ci;
for (ci = clients.begin(); ci != clients.end(); ci++) {
if ((*ci)->getSock() == sock)
- return *ci;
+ return (SConnection*)*ci;
}
return 0;
}