TCPSocket question

G

Günter Glück

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)
 
T

ts

"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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top