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

NextPrevUpTopContentsIndex

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

An 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


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex