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