I am _very_ sorry as this is a typo again. Please see following code:

irb(main):001:0> require 'socket'
=> true
irb(main):002:0> t= TCPSocket.new('127.0.0.1', 110)
=> #<TCPSocket:0x2aa0908>
irb(main):003:0> t.gets
=> "+OK POP3 Server Ready\r\n"
irb(main):004:0> t.send("USER xrfang / 172.18.2.1\n", 0)
=> 23
irb(main):005:0> t.gets
=> "+OK\r\n"
irb(main):006:0> t.send("PASS xrfang\n", 0)
=> 12
irb(main):007:0> t.gets
=> "+OK\r\n"
irb(main):008:0> t.send("RETR 4\n", 0)
=> 7
irb(main):009:0> t.gets
=> "+OK\r\n"
irb(main):010:0> t.gets

It hangs here.

Sincerely,
Shannon


>From: ts <decoux / moulon.inra.fr>
>Reply-To: ruby-talk / ruby-lang.org
>To: ruby-talk / ruby-lang.org (ruby-talk ML)
>CC: ruby-talk / ruby-lang.org
>Subject: Re: socket emergency
>Date: Wed, 20 Aug 2003 22:39:32 +0900
>
> >>>>> "S" == Shannon Fang <xrfang / hotmail.com> writes:
>
>S> irb(main):026:0> t.send("RETR 1", 0)
>                             ^^^^^^
>
>  You have forgotten \n
>
>S> => 6
>
>
>Guy Decoux
>

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger