local-hostname-and-port |
| &optional do-not-resolve | [Function] |
Purpose
Return the name of the host on the local side of the
Package :portable-sockets
Module :portable-sockets
Arguments and values
socket-stream | A socket stream | |
do-not-resolve | A generalized boolean (default is nil )
| |
hostname | A string | |
port | An integer |
Returns
Two values:
See also
open-connection
remote-hostname-and-port
with-open-connection
Examples
Return the local hostname and port of an open socket-stream
connection to the wiki.alu.org
> (local-hostname-and-port connection) "192.168.240.104 (ruby.gbbopen.org)" 56833 >Return the local hostname and port of the open socket-stream connection, but without hostname resolution:
> (local-hostname-and-port connection 't) "192.168.240.104" 56833 >
The GBBopen Project
local-hostname-and-port |