#NEWLINE# def indication( self , apdu ) : #NEWLINE# #INDENT# if _debug : #NEWLINE# #INDENT# WhoIsIAmApplication . _debug ( 'indication %r' , apdu ) #NEWLINE# #UNINDENT# if ( isinstance ( self . _request , WhoIsRequest ) and isinstance ( apdu , IAmRequest ) ) : #NEWLINE# #INDENT# ( device_type , device_instance ) = apdu . iAmDeviceIdentifier #NEWLINE# if ( device_type != 'device' ) : #NEWLINE# #INDENT# raise DecodingError ( 'invalid object type' ) #NEWLINE# #UNINDENT# if ( ( self . _request . deviceInstanceRangeLowLimit is not None ) and ( device_instance < self . _request . deviceInstanceRangeLowLimit ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( self . _request . deviceInstanceRangeHighLimit is not None ) and ( device_instance > self . _request . deviceInstanceRangeHighLimit ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sys . stdout . write ( ( ( 'pduSource = ' + repr ( apdu . pduSource ) ) + '\n' ) ) #NEWLINE# sys . stdout . write ( ( ( 'iAmDeviceIdentifier = ' + str ( apdu . iAmDeviceIdentifier ) ) + '\n' ) ) #NEWLINE# sys . stdout . write ( ( ( 'maxAPDULengthAccepted = ' + str ( apdu . maxAPDULengthAccepted ) ) + '\n' ) ) #NEWLINE# sys . stdout . write ( ( ( 'segmentationSupported = ' + str ( apdu . segmentationSupported ) ) + '\n' ) ) #NEWLINE# sys . stdout . write ( ( ( 'vendorID = ' + str ( apdu . vendorID ) ) + '\n' ) ) #NEWLINE# sys . stdout . flush ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# BIPForeignApplication . indication ( self , apdu )