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

[REBOL] Re: system/ports/wait-list usage

From: rebol-list2:seznam:cz at: 3-Jan-2003 14:08

Hello Gabriele, Tuesday, December 24, 2002, 12:05:41 PM, you wrote: GS> Hi RebOldes, GS> On Monday, December 23, 2002, 2:33:59 AM, you wrote: R>> is there any reason for that? GS> Because it does not have much sense to have a timeout there. :-) Of course there is the reason... I need to call some functions and not to stop the wait cycle R>> How to use the system/ports/wait-list R>> with possibility to have timeouts if the system is iddle (so I can do R>> some tasks) GS> insert tail system/ports/wait-list p GS> wait 0:00:01 R>> is it better to use port's awake function (in the handler object) to GS> I think so, when possible. I find it much more cleaner. As I was working on IRC client which is able to handle more connections at once, I made some tests.... first I made irc-protocol and then used my own wait-list and port-handlers-block (simillar as in the Rugby), just because the behavior of the system/ports/wait-list is strange. It was working, but after some time, excet the last irc connection the other were closed somehow. So I made it as simple open/lines/direct/no-wait (without protocol) and it's working. I think we will have to wait since the async-ports will be finished and Carl will give us some documentation (for example what exactly means the port-flags and how works the event cycle - what's going on when we do wait wait-list) GS> Regards, GS> Gabriele. GS> -- GS> Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer GS> Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r =( Oliva David )=======================( [oliva--david--seznam--cz] )== =( Earth/Europe/Czech_Republic/Brno )============================= =( coords: [lat: 49.22 long: 16.67] )=============================