The function wait-for-input-streams and wait-for-input-streams-returning-first are a convenient interface for waiting for input from socket streams. The standard I/O functions (
and so on) can also wait properly. You can also use process-wait and similar functions with
, but you will need to use with-noticed-socket-stream.
LispWorks User Guide and Reference Manual - 21 Dec 2011