Returns the IP address and port number of the peer for a socket connection.
comm
socket-connection-peer-address socket-connection => address, port
socket-connection⇩ |
A socket connection (socket-stream or async-io-state). |
address⇩ |
An IP address or nil . |
port⇩ |
A port number or nil . |
The function socket-connection-peer-address
returns the peer IP address address and port number port of socket-connection. socket-connection must be either a socket-stream or a async-io-state. If socket-connection is not connected then address and port are returned as nil
.
When socket-connection is a socket-stream, socket-connection-peer-address
is equivalent to socket-stream-peer-address.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26