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

[REBOL] How to tell if a port is open/closed ?

From: arolls:bigpond:au at: 20-Aug-2001 14:33

I have a server like this: server-port: open/direct/no-wait/lines tcp://:4321 connection-port: first server-port append ports: copy [] connection-port ; client connects and disconnects... ; disconnect all foreach port ports [if port [close port]] ** Access Error: Port none not open ** Where: disconnect ** Near: close port This happens if I try to close it twice, but I was hoping the test: if port [close port] would only try to close ports for open ports. ** How do I tell if a port is open? Merci, Anton.