Starting erlang_js properly, and modified python_client tot start two sequential connections

This commit is contained in:
Jonatan Pålsson 2011-02-06 14:43:31 +01:00
parent 79777e7b1c
commit 7267781b64
4 changed files with 8 additions and 5 deletions

View file

@ -52,7 +52,12 @@ data = fs.readline()
print "Token:", token
print "Data: ", ' '.join(data.split(" ")[1:])
s.close()
HOST = 'localhost' # The remote host
PORT = int(sys.argv[1]) # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
# Call that function!
print "Calling myFun"