Returns the remote address and port number of a given socket.
comm
get-socket-peer-address socket => address, port
socket⇩ |
A socket handle. |
address⇩ |
A integer, ipv6-address or nil . |
port⇩ |
An integer or nil . |
The function get-socket-peer-address
returns the remote address of a connected socket socket.
address is the remote host address of socket or nil
if not connected.
port is the remote port number of socket or nil
if not connected.
Connected sockets have two addresses, local and remote.
get-socket-address
socket-stream-peer-address
25 TCP and UDP socket communication and SSL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26