[REBOL] [ports] [tcp] Detecting peer closing connection
From: g:santilli:tiscalinet:it at: 21-Nov-2003 15:22
Hello all,
this is an example of the problem (I'm sending it to feedback
too):
====8<====Console 1=========8<=============8<=============8<>> l: open/binary/no-wait
tcp://:10000
>> p: first l
>> insert/dup p "bla bla " 100
>> copy p
== #{74657374}
>> copy p
== #{}
>> copy p
== #{}
>> copy p
== #{}
>> copy p
== #{}
>> close p
====>8======================>8=============>8=============>8======
====8<====Console 2=========8<=============8<=============8<>> p: open/binary/no-wait
tcp://localhost:10000
>> insert p "test"
>> close p
====>8======================>8=============>8=============>8======
COPY correctly returns NONE if the port send buffer is empty.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/