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

socket-stream-address Function

Summary

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

Package

comm

Signature

socket-stream-address stream => address, port

Arguments
stream
A socket stream.
Values
address
A integer, ipv6-address or nil.
port
An integer or nil.
Description

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

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

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

Notes

Connected socket streams have two addresses, local and remote.

See also

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


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