def dataReceived(self, data):
        try:
            if self.state == HANDSHAKE_SEND:
                self._recv_handshake(data=data)
            elif self.state == SECURITY_SEND:
                self._recv_security(data=data)
            elif self.state == AUTH_SEND:
                self._recv_auth(data=data)
        except (UnsupportedVersion, ProtocolError):
            self.transport.loseConnection()
            return
Recieved data is unbuffered so we buffer it for telnet.
dataset/ETHPy150Open thinkst/opencanary/opencanary/modules/vnc.py/VNCProtocol.dataReceived