All Manuals > LispWorks® User Guide and Reference Manual > 32 The COMM Package

socket-connection-socket Function

Summary

Returns the socket handle of a socket connection.

Package

comm

Signature

socket-connection-socket socket-connection => socket-handle

Arguments
socket-connection
A socket connection (socket-stream or async-io-state).
Values
socket-handle
A socket handle.
Description

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.

Notes

When socket-connection is a socket-stream, socket-connection-socket is equivalent to socket-stream-socket.

See also

socket-stream-socket
socket-stream
async-io-state


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26