From: ···············@ellemtel.se
Subject: CMU Common Lisp: Detecting EOF on a wire
Date:
Message-ID: <34329576.0@d2o28.telia.com>
I am trying to use the "wire" package in CMU Common Lisp (release
17f) to write a TCP/IP client. When calling the wire:wire-get-byte
function an error occurs if the connection has been closed by the
server side. Is there any way to test for end-of-file before
calling wire-get-byte? I tried the wire:wire-listen function,
but it just returns T which is not helpful.
Alternatively, if testing for end-of-file is not possible, is
there a way to catch the resulting error and treat this condition
as an indication of end-of-file?
Rabbe Fogelholm
Ellemtel Utvecklings AB
Stockholm
Sweden
http://www.ellemtel.se/~eubrafo