Next Prev Up Top Contents Index

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-address function returns the remote address.

See also

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


LispWorks Reference Manual (Windows version) - 14 Dec 2001

Next Prev Up Top Contents Index