Returns the socket handle of a socket connection.
comm
socket-connection-socket socket-connection => socket-handle
socket-connection⇩ |
A socket connection (socket-stream or async-io-state). |
socket-handle⇩ |
A socket handle. |
The function socket-connection-socket
returns the socket handle associated with socket-connection. socket-connection must be either a socket-stream or a async-io-state.
The result socket-handle is an implementation-specific socket handle, that is a file descriptor on Unix-like systems, a socket handle on Windows and a lw-ji:jobject of Java class javax.net.ssl.SSLSocket
for streams opened with open-tcp-stream-using-java.
When socket-connection is a socket-stream, socket-connection-socket
is equivalent to socket-stream-socket.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26