diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-31 21:43:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-31 21:43:41 +0200 |
commit | 1193b9c68caba33f19baa4265349a89ff5a777a6 (patch) | |
tree | 63350f4f44b08a66cdc2be201174f7ec76ab96d3 /module/remote/SocketServer.py | |
parent | gui socket finally works (diff) | |
download | pyload-1193b9c68caba33f19baa4265349a89ff5a777a6.tar.xz |
socket interface example
Diffstat (limited to 'module/remote/SocketServer.py')
-rw-r--r-- | module/remote/SocketServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/remote/SocketServer.py b/module/remote/SocketServer.py index e1b41dd1d..c9979adb8 100644 --- a/module/remote/SocketServer.py +++ b/module/remote/SocketServer.py @@ -35,7 +35,6 @@ class MainServerSocket(asyncore.dispatcher): def handle_accept(self): newSocket, address = self.accept() print "Connected from", address - print newSocket SecondaryServerSocket(newSocket, self.pycore) def handle_close(self): print "going to close" @@ -54,7 +53,7 @@ class SecondaryServerSocket(asynchat.async_chat): self.data += data def found_terminator(self): rep = self.handler.proceed(self.data) - self.sendall(rep+"\n") + self.push(rep) print "data arrived" self.data = "" #having fun with the data |