Wouldn't it be wonderful to have netstat, ifconfig, route, traceroute, top and other system/networking utilities in Squeak/Pharo. I can see a use for manipulating the routing tables from inside our wonderful world.

bonne soirée,
Robert

On 12/05/2015 11:54 AM, stepharo wrote:
Et voilà ;-)

Avec MongoTalk :

server := Mongo default.
[ server open ] on: ConnectionTimedOut do: [ :e | self error: 'local mongo server is not running' ].
server isOpen

Avec des sockets uniquement :

[ stream := SocketStream openConnectionToHostNamed: 'localhost' port: 27017 ]
    on: ConnectionTimedOut
    do: [ :e | self error: 'local mongo server is not running' ].
stream


Luc





Le 4/12/15 16:07, stepharo a écrit :
Hi guys

I would like to know if a daemon (mongo) is listening on a given TCP socket?

Stef





Reply via email to