[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

TCPSocket question

Günter Glück

10/30/2004 3:19:00 AM

hi

i'm trying to use TCPSocket the first time and had a problem with it.

<snip>
require "socket"

t = TCPSocket.new('rubyforge.org', 2401)
t.puts "BEGIN VERIFICATION REQUEST\012"
p t.gets
t.close
<snip>

as the process blocks without printing some response i'm wondering
what i'm doing wrong here?

ping is ok. also manual telnet connection with this request gives a response
from the server.

best regards

Günter Glück (ggl)



1 Answer

ts

10/30/2004 10:44:00 AM

0

>>>>> "G" == =?ISO-8859-1?Q?G=FCnter Gl=FCck?= <ISO-8859-1> writes:

Try with

G> t.puts "BEGIN VERIFICATION REQUEST\012"

t.puts "BEGIN VERIFICATION REQUEST\015\012"


Guy Decoux