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

socket-stream-peer-address Function

Summary

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

Package

comm

Signature

socket-stream-peer-address stream => address, port

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

Connected socket streams have two addresses, local and remote. The function socket-stream-peer-address returns the remote address.

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

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

See also

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


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