def recvSecurityResult(self, data):
        """
        Read security result packet
        Use by server to inform connection status of client
        @param data: Stream that contain well formed packet 
        """
        result = UInt32Be()
        data.readType(result)
        if result == UInt32Be(1):
            log.info("Authentification failed")
            if self._version.value == ProtocolVersion.RFB003008:
                self.expectWithHeader(4, self.recvSecurityFailed)
        else:
            log.debug("Authentification OK")
            self.sendClientInit()
def recvSecurityResult ( self , data ) : result = UInt32Be ( ) data . readType ( result ) if result == UInt32Be ( 1 ) : log . info ( "Authentification failed" ) if self . _version . value == ProtocolVersion . RFB003008 : self . expectWithHeader ( 4 , self . recvSecurityFailed ) else : log . debug ( "Authentification OK" ) self . sendClientInit ( )
Read security result packet
        Use by server to inform connection status of client
        @param data: Stream that contain well formed packet