Is there any reason why the server process does not give any output in the following code?
require 'socket'
server = TCPServer.open(3000)
loop{
puts "waiting for connection"
client = server.accept
puts "connection!"
client.close
puts "client closed"
}
I connect via:
nc localhost 3000
in a windows cygwin environment.
No output is visible in the server terminal. Should I maybe flush something somewhere?