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

accepting-handle-socket Function

Summary

Returns the socket associated with an accepting handle.

Package

comm

Signature

accepting-handle-socket accepting-handle => result

Arguments
accepting-handle
Values
result
A socket or nil.
Description

The function accepting-handle-socket returns the socket associated with accepting-handle.

accepting-handle has to be an accepting handle, currently that means the result of accept-tcp-connections-creating-async-io-states.

result is the socket that was created by accept-tcp-connections-creating-async-io-states, but for a closed handle result is nil.

Notes

The socket "belongs" to the handle, and cannot be used for communication by other code. You can use accessors like get-socket-address on it.

See also

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