LispWorks User Guide and Reference Manual > 26 The COMM Package

NextPrevUpTopContentsIndex

get-socket-address

Function
Summary

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

Package

comm

Signature

get-socket-address socket => address, port

Arguments

socket

A socket handle.

Values

address

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

port

The local 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 local address.

See also

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


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex