diff options
Diffstat (limited to 'pyload/manager/Remote.py')
-rw-r--r-- | pyload/manager/Remote.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyload/manager/Remote.py b/pyload/manager/Remote.py index 910881164..4fdb36fc2 100644 --- a/pyload/manager/Remote.py +++ b/pyload/manager/Remote.py @@ -5,6 +5,7 @@ from threading import Thread from traceback import print_exc class BackendBase(Thread): + def __init__(self, manager): Thread.__init__(self) self.m = manager @@ -12,6 +13,7 @@ class BackendBase(Thread): self.enabled = True self.running = False + def run(self): self.running = True try: @@ -23,18 +25,23 @@ class BackendBase(Thread): finally: self.running = False + def setup(self, host, port): pass + def checkDeps(self): return True + def serve(self): pass + def shutdown(self): pass + def stop(self): self.enabled = False# set flag and call shutdowm message, so thread can react self.shutdown() @@ -43,6 +50,7 @@ class BackendBase(Thread): class RemoteManager(object): available = [] + def __init__(self, core): self.core = core self.backends = [] |