Trouble using class Socket

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble using class Socket

Marcelo Barbosa
 
Hi
 
I'm starting with network classes of Squeak and having some trouble. I've tried to execute the following code in Workspace Window:
 
Socket ping: 'www.cnn.com'
 
and after a few seconds a dialog box poped up with the following message: 'Continue to wait for connection to desktop?'
 
I cannot imagine what is wrong. My connection to the Internet is working perfectly. I can ping the host www.cnn.com using the Windows Command Prompt.
 
I would appreciate so much any help.


------------------------------------------
Marcelo Pereira Barbosa
São Paulo, Brasil

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Trouble using class Socket

Michael van der Gulik-3
Marcelo Barbosa wrote:

>  
> Hi
>  
> I'm starting with network classes of Squeak and having some trouble.
> I've tried to execute the following code in Workspace Window:
>  
> Socket ping: 'www.cnn.com <http://www.cnn.com>'
>  
> and after a few seconds a dialog box poped up with the following
> message: 'Continue to wait for connection to desktop?'
>  
> I cannot imagine what is wrong. My connection to the Internet is
> working perfectly. I can ping the host www.cnn.com
> <http://www.cnn.com> using the Windows Command Prompt.
>  

Well... look at the code!

Socket>>ping: hostName
    "Ping the given host. Useful for checking network connectivity. The
host must be running a TCP echo server."

In other words, Socket>>ping does not do a "normal" ICMP ping, but
rather tries to connect to a remote server running an echo service on
TCP port 7.

Try telnetting to that server on port 7 and see what happens.

Michael.
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners