Returns the local address and port number of a given socket.
comm
get-socket-address socket => address, port
socket
A socket handle.
address
The local host address of the socket or nil if not connected.
nil
port
The local port number of the socket or nil if not connected.
Connected sockets have two addresses, local and remote. The get-socket-address function returns the local address.
get-socket-address
get-socket-peer-address socket-stream-address