Example #1
0
class Transmit(Operation):
    def __init__(self, name, context, **params):
        Operation.__init__(self, name, context, **params)
        self.apdu = APDU(params['apdu'])
        self.protocol = params['dwProtocol']

    def performed(self, hresult, **params):
        Operation.performed(self, hresult, **params)
        self.apdu.received(params['response'])
Example #2
0
 def __init__(self, name, context, **params):
     Operation.__init__(self, name, context, **params)
     self.apdu = APDU(params['apdu'])
     self.protocol = params['dwProtocol']