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

socket-connection-peer-address Function

Summary

Returns the IP address and port number of the peer for a socket connection.

Package

comm

Signature

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

Arguments
socket-connection
A socket connection (socket-stream or async-io-state).
Values
address
An IP address or nil.
port
A port number or nil.
Description

The function socket-connection-peer-address returns the peer IP address address and port number port of socket-connection. socket-connection must be either a socket-stream or a async-io-state. If socket-connection is not connected then address and port are returned as nil.

Notes

When socket-connection is a socket-stream, socket-connection-peer-address is equivalent to socket-stream-peer-address.

See also

socket-stream
async-io-state


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