Returns the remote address and port number of a given socket.
comm
get-socket-peer-address socket => address, port
socket
A socket handle.
address
The remote host address of the socket or nil if not connected.
nil
port
The remote 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 remote address.
get-socket-address
get-socket-address socket-stream-peer-address