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

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
A integer, ipv6-address or nil.
port
An integer or nil.
Description

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

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

port is the local port number of socket or nil if not connected.

Notes

Connected sockets have two addresses, local and remote.

See also

get-socket-peer-address
socket-stream-address
25 TCP and UDP socket communication and SSL


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26