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