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

[REBOL] Re: How to tell if a port is open/closed ?/port!, port?, port..

From: tim::johnsons-web::com at: 19-Aug-2001 22:14

On Mon, Aug 20, 2001 at 02:33:04PM +1000, Anton wrote:
> 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]
Hi Anton: ;How about if port? port [close port] ; argh! been programming wine prices too, too much!
> would only try to close ports for open ports. > > ** How do I tell if a port is open? > > Merci, > > Anton. > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com