NextPrevUpTopContentsIndex

get-socket-peer-address

Function
Summary

Returns the remote address and port number of a given socket.

Package

comm

Signature

get-socket-peer-address socket => address, port

Arguments

socket

A socket handle.

Values

address

The remote host address of the socket or nil if not connected.

port

The remote port number of the socket or nil if not connected.

Description

Connected sockets have two addresses, local and remote. The get-socket-peer-address function returns the remote address.

See also

get-socket-address
socket-stream-peer-address


LispWorks Reference Manual - 12 Mar 2008

NextPrevUpTopContentsIndex