Sorry, this mail came out too quick.  How to report the error is a secondary
matter.I believe the issue is about localhost name resolution.  I think this
was discussed around the Windows VM platform, but I am on a Mac.


NetNameResolver addressForName: 'localhost'

does not return 127.0.0.1

And,

NetNameResolver localHostAddress

returns the address on the network leg (192.168.....) instead of 127.0.0.1

Is the convention that localhost is always 127.0.0.1 ?


Cheers


r.


On Thu, Jul 30, 2009 at 9:20 PM, Ramiro Diaz Trepat
<[email protected]>wrote:

> I am trying to port Magma to Pharo, and I have run across the following
> issue.
>
> Ini Pharo, the method:
>
> Socket>>connectTo: hostAddress port: port waitForConnectionFor: timeout
> (mir 6/17/2007 20:10)
>
> "Initiate a connection to the given port at the given host
> address. Waits until the connection is established or time outs."
>  self connectNonBlockingTo: hostAddress port: port.
> self
> waitForConnectionFor: timeout
>  ifTimedOut: [ConnectionTimedOut signal: 'Cannot connect to '
> , self *remoteHostAddress* hostNumber , ':' , port asString]
>
>
> #*remoteHostAddress* has no implementors in Pharo.
>
> The implementation of this method in Squeak uses *NetNameResolver*
>
> Socket>>connectTo: hostAddress port: port waitForConnectionFor: timeout
> (mu 8/14/2003 15:15)
> "Initiate a connection to the given port at the given host
>  address. Waits until the connection is established or time outs."
> self connectNonBlockingTo: hostAddress port: port.
>  self
> waitForConnectionFor: timeout
> ifTimedOut: [ConnectionTimedOut signal: 'Cannot connect to '
>  , (*NetNameResolver* stringFromAddress: hostAddress) , ':' , port
> asString]
>
> Who is maintaining Socket now in Pharo?
> Has anyone got some advice on how to solve this?
> Cheers
>
> r.
>
>
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to