Waits to establish a connection for a stream.
win32
wait-for-connection stream &key timeout wait-reason wait-function => connectedp
|   stream⇩  |    
A named pipe stream.  | 
|   timeout⇩  |    
A non-negative real number, or  nil. | 
|   wait-reason⇩  |    
A string, or  nil. | 
|   wait-function⇩  |    
A function designator, or  nil. | 
|   connectedp  |    
A generalized boolean.  | 
The function wait-for-connection waits until it succeeds to establish a connection for the stream stream, or timeout seconds passed or wait-function returns non-nil, and returns a value indicating whether the connection is established successfully.
stream must be a stream of the right type. Currently the only supported stream is a named pipe stream (the result of open-named-pipe-stream).
timeout can be nil or a real number specifying the time in seconds before wait-for-connection returns without establishing a connection.
wait-reason, if non-nil, needs to be a string specifying the wait reason. It has the same semantics as the wait-reason argument of process-wait.
wait-function, if non-nil, must be a function of no arguments. If it returns non-nil, wait-for-connection returns nil.
wait-for-connection can be repeatedly called on the same stream. If the stream has already established a connection, it returns true immediately.
wait-function has the same limitations as the wait-function argument of process-wait.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:08