Closes a socket handle.
comm
close-socket-handle socket-handle
socket-handle⇩ |
A socket handle. |
The function close-socket-handle
closes socket-handle, thus releasing all OS resources that are associated with it. After socket-handle has been closed, it cannot be used anymore. close-socket-handle
can also be called with a Java socket, that is a lw-ji:jobject of Java class java.net.Socket
, and closes it using the Java method.
In typical usage, you do not need to call close-socket-handle
, because the socket handle is stored in a socket connection object (socket-stream or async-io-state) and is closed automatically when the socket connection object is closed (by close for socket-stream and close-async-io-state for async-io-state).
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26