Hey that works! Thanks Gabriele. Always wondered what away was for. :-) So when I think I hit a brick wall, I found another undocumented feature does the trick. How did you find out about awake? and sub-port as you use in async protocol?
Paul Tretter ----- Original Message ----- From: "Gabriele Santilli" <[EMAIL PROTECTED]> To: "Paul Tretter" <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 5:14 AM Subject: [REBOL] Re: No-wait > > Hi Paul, > > On Monday, February 23, 2004, 4:31:01 AM, you wrote: > > PT> Even that still blocks. Need a way of not waiting for the port data if > PT> nothing is there. A way to just continue processing the rest of the forever > PT> loop which should be continously print the current value of x. Maybe, I > PT> need to see an example of something that works. > > listen: open/no-wait tcp://:7000 > listen/awake: func [port /local conn] [ > print "Got connection" > conn: first port > ; do something with conn > false > ] > insert tail system/ports/wait-list listen > x: 0 > forever [ > print x: x + 1 > wait 0.2 > ] > > Regards, > Gabriele. > -- > Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer > Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/ > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004 -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.