comp.lang.tcl
[Top] [All Lists]

Re: socket question

Subject: Re: socket question
From: Rolf Schroedter
Date: Fri, 30 May 2008 11:26:36 +0200
Newsgroups: comp.lang.tcl


You need to setup a server socket on host2:
        socket -server host2 19000

Stuart wrote, On 30.05.2008 10:36:
Perhaps somebody can help me understand this behavior..

 On host1  inside the tcl shell I type

 set s [socket -async  host1 19000]

I get an error "couldn't open socket: connection refused". This I
expected
as I have no server listening on host1:19000

 On host2  inside the tcl shell I type

set s [socket -async  host1 19000]

and I get "sock5". There is still no server listening on host1:19000,
and so I'm
wondering why on host2 I don't get the "couldn't open socket:
connection refused" message?

Thanks in advance,

  Stuart

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy