[REBOL] Network Port Reading Problem Re:(2)
From: rsnell:webtrends at: 7-Sep-2000 16:42
Thanks Holger. I'll try the xper but I really need to stick
with a stable release at this point. It looks like I can use
the /binary refinement and copy/part to get the data and that
should work for now.
One possible problem I saw though. I want to check whether there
is data waiting on the port before trying to copy. I see the
users guide says to use 'wait like [wait c 1] to wait on
port c for 1 second. However, if I do the following:
>> c: open/binary tcp://host:23
>> print copy/part c 100
>> #{FFFD18FFFD1FFFFD23FFFD27FFFD24}
>> wait c 1 ;should return after 1 second because there is no more data
/ (never returns from waiting)
It doesn't seem like wait is working correctly.
Basically I need something like the select() socket function.
Am I doing the right thing here?
Thanks again,
Rodney