The function close-accepting-handle
closes the accepting handle accepting-handle. In particular, it closes the socket which frees up the port that the socket is bound to.
accepting-handle has to be an accepting handle, currently that means the result of accept-tcp-connections-creating-async-io-states.
If callback is non-nil, it must be a function of one argument. callback is called after closing the handle, with the collection which was supplied to accept-tcp-connections-creating-async-io-states which created the handle.
close-accepting-handle
is asynchronous. To do something which is guaranteed to happen after the socket is closed, use callback.
LispWorks User Guide and Reference Manual - 20 Sep 2017