On Sun, May 16, 2010 at 4:28 AM, RickT <[hidden email]> wrote:
Welcome! we hope you enjoy :) I am under the impression that in a Shout Workspace I can Sorry I don't understand. Where you can successfully ping ? what's is a command window? do you mean DOS or somehow outside Pharo? Can you try the same after evaluating: NetNameResolver classVarNamed: 'UseOldNetwork' put: true Can you try also the same but using a PharoCore 1.1 image (you can use the same VM): https://gforge.inria.fr/frs/download.php/26995/PharoCore-1.1-11357-UNSTABLE.zip Thanks! Mariano Any guidance _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
On Sun, May 16, 2010 at 6:36 PM, RickT <[hidden email]> wrote:
Excellent. Just in case you don't know: http://pharobyexample.org/ http://book.seaside.st/book and in progress: http://book.pharo-project.org/ To my problem: Ups...sorry. Actually that was for breaking encapsulation as NetNameResolver does not have a setter for such class variable. To do a quick test just implement a class side method in NetNameResolver like this: useOldNetwork: aBoolean UseOldNetwork := aBoolean And then evaluate: NetNameResolver useOldNetwork: true.
Ok...the network package is not the best in Pharo and we had several problems :( And yes, I meant the OS command window ping worked. For Windows XP it is Ok...I know very little about network but maybe someone can help you. cheers mariano (I am running on a Dell M90 Precision laptop. FWIW) _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Mariano Martinez Peck
Hi guys. No, it doesn't work for me neither. I have checked in Pharo 1.0 and 1.1 with both: useOldNetwork as true and false.
I have debugged a little the: Socket ping: 'localhost' And the problem I found is that after calling "connectNonBlockingTo: hostAddress port: port" self primSocketConnectionStatus: socketHandle. should answer something different thanUnconnected ( 0 ), like WaitingForConnection (1) or Connected (2) check Socket class >> initialize So....I should see in VM side why primSocketConnectionStatus: socketHandle. may be returning 0 (unconnected). Now...if I ping Socket ping: 'www.google.com' The result is different as I get WaitingForConnection (1) instead of 0....but it loops forever as I always get 1 and never 2....see the loop [(status = WaitingForConnection) and: [(msecsEllapsed := Time millisecondsSince: startTime) < msecsDelta]] whileTrue: [ semaphore waitTimeoutMSecs: msecsDelta - msecsEllapsed. status := self primSocketConnectionStatus: socketHandle]. in the method waitForConnectionFor: timeout ifTimedOut: timeoutBlock I will continue to check, but my knowledge in this area is almost nil. Cheers Mariano On Sun, May 16, 2010 at 8:30 PM, RickT <[hidden email]> wrote:
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
which is cool because you can learn fast :)
I like to try to answer questions because this is a good way to learn. Thanks for having this cool attitude too. Stef > Hi guys. No, it doesn't work for me neither. I have checked in Pharo 1.0 and 1.1 with both: useOldNetwork as true and false. > > I have debugged a little the: > > Socket ping: 'localhost' > > And the problem I found is that after calling "connectNonBlockingTo: hostAddress port: port" > > self primSocketConnectionStatus: socketHandle. > > should answer something different thanUnconnected ( 0 ), like WaitingForConnection (1) or Connected (2) > check Socket class >> initialize > > So....I should see in VM side why primSocketConnectionStatus: socketHandle. may be returning 0 (unconnected). > > Now...if I ping > > Socket ping: 'www.google.com' > > The result is different as I get WaitingForConnection (1) instead of 0....but it loops forever as I always get 1 and never 2....see the loop > > [(status = WaitingForConnection) and: [(msecsEllapsed := Time millisecondsSince: startTime) < msecsDelta]] > whileTrue: [ > semaphore waitTimeoutMSecs: msecsDelta - msecsEllapsed. > status := self primSocketConnectionStatus: socketHandle]. > > in the method waitForConnectionFor: timeout ifTimedOut: timeoutBlock > > I will continue to check, but my knowledge in this area is almost nil. > > Cheers > > Mariano > > On Sun, May 16, 2010 at 8:30 PM, RickT <[hidden email]> wrote: > > Hi Stefan, > > Mariano asked me to try using that method to set UseOldNetwork. > > I only was testing the class method Socket>>ping: from the workspace, and it > always timed out. > > It also did not work in the Pharo1.1 image that Mariano asked me to try. > > Thanks! > -- > View this message in context: http://forum.world.st/Newbie-Does-Socket-ping-addr-work-in-Pharo3-11-8-tp2218247p2218755.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > > _______________________________________________ > Pharo-users mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users > > _______________________________________________ > Pharo-users mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |