[shpy-commit] r2886 - shpy/trunk/dist/shpy/net
arigo@codespeak.net
arigo@codespeak.net
Fri, 23 Jan 2004 15:34:52 +0100 (MET)
Author: arigo
Date: Fri Jan 23 15:34:52 2004
New Revision: 2886
Added:
shpy/trunk/dist/shpy/net/quitserver.py
Modified:
shpy/trunk/dist/shpy/net/shared.py
shpy/trunk/dist/shpy/net/shell.py
Log:
checking in quitserver.py.
got rid of the last references to pickle.
Added: shpy/trunk/dist/shpy/net/quitserver.py
==============================================================================
--- (empty file)
+++ shpy/trunk/dist/shpy/net/quitserver.py Fri Jan 23 15:34:52 2004
@@ -0,0 +1,10 @@
+import sys
+import socket
+
+hostport = sys.argv[1]
+host, port = hostport.split(':')
+hostport = (host, int(port))
+
+sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+sock.connect(hostport)
+sock.sendall('"raise KeyboardInterrupt"\n')
Modified: shpy/trunk/dist/shpy/net/shared.py
==============================================================================
--- shpy/trunk/dist/shpy/net/shared.py (original)
+++ shpy/trunk/dist/shpy/net/shared.py Fri Jan 23 15:34:52 2004
@@ -1,8 +1,6 @@
# This module is sent by the first connecting client to the server.
# It is not reloaded if it changes later!
-import pickle
-
clientlist = []
def getclientlist():
Modified: shpy/trunk/dist/shpy/net/shell.py
==============================================================================
--- shpy/trunk/dist/shpy/net/shell.py (original)
+++ shpy/trunk/dist/shpy/net/shell.py Fri Jan 23 15:34:52 2004
@@ -1,7 +1,7 @@
"""
a remote python shell
-for injection into server_unpickle.py
+for injection into startserver.py
"""
import sys, os, socket, select