>>>>> "t" == takaoueda  <takaoueda / my-deja.com> writes:

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 ?

 You have a more complete example, in ruby-man-1.4, for the server.


Guy Decoux