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

[REBOL] Re: waiting on ports

From: mattsmac:hotma:il at: 25-Aug-2003 10:58

For instance c/1 is one port, c/2 is a different port, etc. So I want to do a wait on all of them. wait c works fine, but I have to wait for the network timeout if there is no activity on the ports. For a single port you can do a command like wait [c/1 5] so that it listens on c/1 for 5 seconds. So I want to do the same thing, but with all of the ports. So the command would be something like: wait [c 5], but this generates an error. Matt Hi Matt, I am not sure if I understand what you mean by a series of ports. You can specify the timeout for TCP ports using: port: open tcp:192.1.1.1:5001 port/timeout: 5 I hope this is a start. Brgds /Micael -----Ursprungligt meddelande----- Från: Matt MacDonald [mailto:[mattsmac--hotmail--com]] Skickat: den 25 augusti 2003 16:00 Till: [rebol-list--rebol--com] Ämne: [REBOL] waiting on ports I have a series of ports, c. I want to wait on all of them, but I also want to specify the timeout parameter, 5 seconds. How can I do this? ready: wait [c 5] does not work. Matt