def request(self, apdu): if _debug: WhoIsIAmApplication._debug("request %r", apdu) # save a copy of the request self._request = apdu # forward it along BIPForeignApplication.request(self, apdu)
def request(self, apdu): """Sniff for Who-Is requests going downstream.""" if _debug: DiscoveryApplication._debug("request %r", apdu) # save a copy of just the Who-Is request if isinstance(apdu, WhoIsRequest): self.who_is_request = apdu # forward it along BIPForeignApplication.request(self, apdu)