Added new python test file, and made __echo respond with users JSVM

This commit is contained in:
Jonatan Pålsson 2011-02-01 01:40:21 +01:00
parent 2c083dd3dd
commit 30cebd1c0d
6 changed files with 64 additions and 14853 deletions

20
echo_test Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env ruby -wKU
require 'socket' # Sockets are in standard library
hostname = 'localhost'
port = 7000
print "Which port @ loclhost?"
port = gets
s = TCPSocket.open(hostname, port.chop)
s.print("__hello")
while true
line = s.gets # Read lines from the socket
puts ">> " + line.chop # And print with platform line terminator
s.print(gets.chop)
end
s.close # Close the socket when done