All Manuals > LispWorks User Guide and Reference Manual > 32 The COMM Package

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

The function get-socket-peer-address returns the remote address of a connected socket.

Notes

Connected sockets have two addresses, local and remote.

See also

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


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex