Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: just "ping"; now "psst"

From: tomc:darkwing:uoregon at: 20-Aug-2002 12:33

Hi Ken, If you know a port is open on a machine you can assume it is doen if you cannot connect, you dont need any response beyond that a connection is possible. maybe these will help
>> either error? try[port: open/no-wait tcp://rebol.com:80]
["ahrgg"][close port "ping!"] == "ping!" (with a bad/closed port number)
>> either error? try[port: open/no-wait tcp://rebol.com:0]
["ahrgg"][close port "ping!"] == "ahrgg"
>> either error? try[port: open/no-wait tcp://whatever.com:80]
["ahggg"][close port "ping!"] == "ahggg"
>> either error? try[port: open/no-wait tcp://www.whatever.com:80]
["ahggg"][close port "ping!"] == "ping!" On Mon, 19 Aug 2002, Ken B. Cadby wrote: