class Application(object): transmitter = None receiver = None def __init__(self, network): self.transmitter = TransmitHandler(network) self.receiver = ReceiverHandler(network) self.network = network def boot(self): general_logger.info("Initialising the application") self.receiver.start() def close(self): general_logger.info("Terminating the application") self.receiver.stop()
def __init__(self, network): self.transmitter = TransmitHandler(network) self.receiver = ReceiverHandler(network) self.network = network