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

Wait Port

 [1/6] from: ptretter::charter::net at: 7-Oct-2000 17:29


Does anyone know what the default time is that the wait commands polls the port for data. Im not talking about the timeout but the time it check the port to see if data is coming. How fast is that and can it be changed. Paul Tretter

 [2/6] from: holger:rebol at: 7-Oct-2000 19:40


On Sat, Oct 07, 2000 at 05:29:47PM -0500, [ptretter--charter--net] wrote:
> Does anyone know what the default time is that the wait commands polls the > port for data. Im not talking about the timeout but the time it check the > port to see if data is coming. How fast is that and can it be changed.
Wait does not poll at all. It blocks until any of the ports you specify have data. This is done by calling an operating system function, not by busy-looping in a poll loop. -- Holger Kruse [holger--rebol--com]

 [3/6] from: deryk:iitowns at: 8-Oct-2000 11:00


[holger--rebol--com] wrote:
> On Sat, Oct 07, 2000 at 05:29:47PM -0500, [ptretter--charter--net] wrote: > > Does anyone know what the default time is that the wait commands polls the
<<quoted lines omitted: 3>>
> have data. This is done by calling an operating system function, not by > busy-looping in a poll loop.
There is no timeout on the select()? If not, for those rolling their own protocols, should there be the option at the higher Rebol level? :) Deryk

 [4/6] from: holger:rebol at: 8-Oct-2000 6:01


On Sun, Oct 08, 2000 at 11:00:25AM +0800, [deryk--iitowns--com] wrote:
> [holger--rebol--com] wrote: > >
<<quoted lines omitted: 8>>
> There is no timeout on the select()? If not, for those rolling their own > protocols, should there be the option at the higher Rebol level? :)
You can specify a timeout in the wait block. -- Holger Kruse [holger--rebol--com]

 [5/6] from: deryk:iitowns at: 9-Oct-2000 8:46


[holger--rebol--com] wrote:
> On Sun, Oct 08, 2000 at 11:00:25AM +0800, [deryk--iitowns--com] wrote:
[SNIP]
> > There is no timeout on the select()? If not, for those rolling their own > > protocols, should there be the option at the higher Rebol level? :) > > You can specify a timeout in the wait block.
Cool beans, thanks for the info Holger. :) Deryk

 [6/6] from: ptretter:charter at: 9-Oct-2000 8:04


Thanks for the previous responses to the thread as they all help to fully understand ports a little better. My next question is does anyone have or know where to find a simple example of using Wait port for more than one port. I tried using Wait [port1 port2] but simply got the script to hang. The script worked fine on one port. Your comments are appreciated. Paul Tretter

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted