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

async-io-state-peer-address Function

Summary

Returns the local address and port number for an async-io-state state that has a connected socket.

Package

comm

Signature

async-io-state-peer-address async-io-state => address, port

Arguments
async-io-state
Values
address
An integer, an ipv6-address or nil.
port
An integer or nil.
Description

The function async-io-state-peer-address returns the remote address and port number for async-io-state if it has a socket which is connected.

address is the remote host address of the socket in the state.

port is the remote port number of the socket in the state.

For an unconnected socket both address and port are nil.

See also

async-io-state-address
get-socket-peer-address
25.7.2 The Async-I/O-State API
25 TCP and UDP socket communication and SSL


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