In article <200012311619.eBVGJc600748 / orsay1.moulon.inra.fr>,
  ts <decoux / moulon.inra.fr> wrote:
> t> #serverIN.rb
>
>     require 'socket'
>     gs = TCPserver.open("localhost", 3456)
>     while true
>        ns = gs.accept
>        puts ns.recvfrom(124)[0]
>        ns.close
>     end
>
> t> #clientIN.rb
>
>     require "socket"
>     s = TCPsocket.open("localhost", 3456)
>     s.write("hello")
>     s.close
>
>  no ?
>

That's great!  That's really the simplest client-server network programs
I've ever seen.

        Takao


Sent via Deja.com
http://www.deja.com/