def recvInfoPkt(self, s):
        """
        @summary: receive info packet from client
        Client credentials
        Send License valid error message
        Send Demand Active PDU
        Wait Confirm Active PDU
        @param s: {Stream}
        """
        securityFlag = UInt16Le()
        securityFlagHi = UInt16Le()
        s.readType((securityFlag, securityFlagHi))
        
        if not (securityFlag.value & SecurityFlag.SEC_INFO_PKT):
            raise InvalidExpectedDataException("Waiting info packet")
        
        if securityFlag.value & SecurityFlag.SEC_ENCRYPT:
            s = self.readEncryptedPayload(s, securityFlag.value & SecurityFlag.SEC_SECURE_CHECKSUM)
        
        s.readType(self._info)
        #next state send error license
        self.sendLicensingErrorMessage()
        #reinit state
        self.setNextState()
        self._presentation.connect()
def recvInfoPkt ( self , s ) : securityFlag = UInt16Le ( ) securityFlagHi = UInt16Le ( ) s . readType ( ( securityFlag , securityFlagHi ) ) if not ( securityFlag . value & SecurityFlag . SEC_INFO_PKT ) : raise InvalidExpectedDataException ( "Waiting info packet" ) if securityFlag . value & SecurityFlag . SEC_ENCRYPT : s = self . readEncryptedPayload ( s , securityFlag . value & SecurityFlag . SEC_SECURE_CHECKSUM ) s . readType ( self . _info ) self . sendLicensingErrorMessage ( ) self . setNextState ( ) self . _presentation . connect ( )
@summary: receive info packet from client
        Client credentials
        Send License valid error message
        Send Demand Active PDU
        Wait Confirm Active PDU
        @param s: {Stream}