From: takaoueda@... Date: 2001-01-02T00:10:02+09:00 Subject: [ruby-talk:8460] Re: New to Ruby In article <200012311619.eBVGJc600748@orsay1.moulon.inra.fr>, ts 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/