All Manuals > 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

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

Notes

Connected sockets have two addresses, local and remote.

See also

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


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex