NetNameResolver

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

NetNameResolver

Thelliez
Still playing with TFLogin, the Google reCAPTCHA call involves the SocketStream class. It appears to be something equivalent in GLASS: SqueakSocketStream.  But then the following method calls NetNameResolver. This is not in GLASS...

openConnectionToHostNamed: hostName port: portNumber
    | hostIP |
    hostIP := NetNameResolver addressForName: hostName timeout: 20.
    ^self openConnectionToHost: hostIP port: portNumber


Any suggestions for plan B? NetNameResolver does not look trivial to port.  I could call an external script for now (for example http://happy-coding.com/retrieve-ip-address-from-host-name-using-ruby/)


Thierry
Reply | Threaded
Open this post in threaded view
|

Re: NetNameResolver

Dale Henrichs
I would think that you can find the functionality you need in GsSocket ... hopefully...

Dale

On Apr 15, 2011, at 8:04 PM, Thierry Thelliez wrote:

Still playing with TFLogin, the Google reCAPTCHA call involves the SocketStream class. It appears to be something equivalent in GLASS: SqueakSocketStream.  But then the following method calls NetNameResolver. This is not in GLASS...

openConnectionToHostNamed: hostName port: portNumber
    | hostIP |
    hostIP := NetNameResolver addressForName: hostName timeout: 20.
    ^self openConnectionToHost: hostIP port: portNumber


Any suggestions for plan B? NetNameResolver does not look trivial to port.  I could call an external script for now (for example http://happy-coding.com/retrieve-ip-address-from-host-name-using-ruby/)


Thierry

Reply | Threaded
Open this post in threaded view
|

Re: NetNameResolver

Paul DeBruicker
In reply to this post by Thelliez
I made a port of SocketStream in http://seaside.gemstone.com/ss/PharoCompat that might work. It passes all the tests from Pharo and implements

#openConnectionToHostNamed:port:



On Apr 15, 2011, at 11:04 PM, Thierry Thelliez <[hidden email]> wrote:

Still playing with TFLogin, the Google reCAPTCHA call involves the SocketStream class. It appears to be something equivalent in GLASS: SqueakSocketStream.  But then the following method calls NetNameResolver. This is not in GLASS...

openConnectionToHostNamed: hostName port: portNumber
    | hostIP |
    hostIP := NetNameResolver addressForName: hostName timeout: 20.
    ^self openConnectionToHost: hostIP port: portNumber


Any suggestions for plan B? NetNameResolver does not look trivial to port.  I could call an external script for now (for example http://happy-coding.com/retrieve-ip-address-from-host-name-using-ruby/)


Thierry
Reply | Threaded
Open this post in threaded view
|

Re: NetNameResolver

Dale Henrichs
Excellent ...

I've got some things on my plate that I've got to clear off at GemStone, but I am really looking forward to integrating the contributions that you guys have made in the last several months ... there's lots of neat stuff that I'd like to pull together.

And I'm hoping that the MetacelloBrowser will be available, because it should make the process of you guys integrating the changes into GLASS (without waiting for me) much easier ...

Dale

On Apr 15, 2011, at 9:12 PM, Paul DeBruicker wrote:

I made a port of SocketStream in http://seaside.gemstone.com/ss/PharoCompat that might work. It passes all the tests from Pharo and implements

#openConnectionToHostNamed:port:



On Apr 15, 2011, at 11:04 PM, Thierry Thelliez <[hidden email]> wrote:

Still playing with TFLogin, the Google reCAPTCHA call involves the SocketStream class. It appears to be something equivalent in GLASS: SqueakSocketStream.  But then the following method calls NetNameResolver. This is not in GLASS...

openConnectionToHostNamed: hostName port: portNumber
    | hostIP |
    hostIP := NetNameResolver addressForName: hostName timeout: 20.
    ^self openConnectionToHost: hostIP port: portNumber


Any suggestions for plan B? NetNameResolver does not look trivial to port.  I could call an external script for now (for example http://happy-coding.com/retrieve-ip-address-from-host-name-using-ruby/)


Thierry

Reply | Threaded
Open this post in threaded view
|

Re: NetNameResolver

Thelliez
In reply to this post by Paul DeBruicker
Thanks Paul.  Your package seems to run fine with the few tests I made.


Thierry