Am 14.06.2013 20:01, schrieb Rs N.:
> require 'socket'
>
> server = TCPServer.new 2000 # Server bind to port 2000
> loop do
>    client = server.accept    # Wait for a client to connect
>    client.puts "Hello !"
>    client.puts "Time is #{Time.now}"
>    client.close
> end

That's an example from the `Socket` documentation. It should work.

And...?


-- 
<https://github.com/stomar/>