summaryrefslogtreecommitdiffstats
path: root/module/remote/SocketBackend.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 22:44:24 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-19 22:44:24 +0100
commit3b9885e40961bde996014c7e82d59daf2bd7ac14 (patch)
tree54f60f42b9b445d8b497d373a9d16eefd262ce87 /module/remote/SocketBackend.py
parentcatch real debrid error, when ip is blocked (diff)
downloadpyload-3b9885e40961bde996014c7e82d59daf2bd7ac14.tar.xz
disableble thriftbackend
Diffstat (limited to 'module/remote/SocketBackend.py')
-rw-r--r--module/remote/SocketBackend.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/module/remote/SocketBackend.py b/module/remote/SocketBackend.py
new file mode 100644
index 000000000..1a157cf1d
--- /dev/null
+++ b/module/remote/SocketBackend.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+import SocketServer
+
+from RemoteManager import BackendBase
+
+class RequestHandler(SocketServer.BaseRequestHandler):
+
+ def setup(self):
+ pass
+
+ def handle(self):
+
+ print self.request.recv(1024)
+
+
+
+class SocketBackend(BackendBase):
+
+ def setup(self, host, port):
+ #local only
+ self.server = SocketServer.ThreadingTCPServer(("localhost", port), RequestHandler)
+
+ def serve(self):
+ self.server.serve_forever()