[REBOL] Re: possible rebol tcp open bug ...
From: petr:krenzelok:trz:cz at: 11-Aug-2002 12:41
Paul Tretter wrote:
>Not sure what your doing Petr but make sure you checking for "none" when
>using /no-wait refinement and not 'none.
>
I don't need to check for anything imo. The 'wait loop breaks, if false
condition is met, automatically.
> "none" will be sent anytime there
>is no data.
>
That's not actually true, I am sorry. When using:
while [data: copy port] .... it will return empty string in no-wait
mode, if data is not available, and none, if connection was closed.
So to wait for data, to not process wait loop for those empty string,
you just need:
while [wait port data: copy port] .... that's all imo and should work ...
What is more:
1) if you will search escribe archives, you will find message from
Holger IIRC, telling we should not count on flag values, as they can
change from version to version
2) do I need to care of how I desing my while loop, if
open/binary/direct/no-wait works, while open/direct/no-wait doesn't?
Thanks for your input anyway ....
-pekr-