Closes an accepting handle.
comm
close-accepting-handle accepting-handle &optional callback
accepting-handle⇩ |
An accepting-handle. |
callback⇩ |
A function designator or nil . |
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.
callback is called on the collection process, so it should not do much work.
accepting-handle
accept-tcp-connections-creating-async-io-states
25 TCP and UDP socket communication and SSL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26