class TftpDaemon(threading.Thread): def __init__(self, logger, config, bootpd=None): threading.Thread.__init__(self, name="TftpDeamon") self.daemon = True self._server = TftpServer(logger=logger, config=config, bootpd=bootpd) def run(self): self._server.bind() self._server.forever()
def __init__(self, logger, config, bootpd=None): threading.Thread.__init__(self, name="TftpDeamon") self.daemon = True self._server = TftpServer(logger=logger, config=config, bootpd=bootpd)
def __init__(self, logger, config, bootpd=None): super(TftpDaemon, self).__init__(name="TftpDeamon") self.daemon = True self._server = TftpServer(logger=logger, config=config, bootpd=bootpd)