Next: , Previous: Socket Operators, Up: Sockets


2.2.3 Socket Accessors

— Generic Function: sockets:socket-os-fd socket

Returns the os file descriptor of socket.

— Generic Function: sockets:socket-type socket

Returns the socket type of socket - :stream or :datagram.

— Generic Function: sockets:socket-protocol object

Return the protocol of a socket.

— Generic Function: sockets:socket-address-family object

Return the address family of a socket.

— Generic Function: sockets:local-name socket

For internet sockets, returns two values: the local host and the local port. For local sockets, returns the local filename.

— Generic Function: sockets:local-host socket

Returns the local host of socket. Works only on internet sockets.

— Generic Function: sockets:local-port socket

Returns the local port of socket - an (UNSIGNED-BYTE 16). Works only on internet sockets.

— Generic Function: sockets:local-filename socket

Returns the local filename of socket. Works only on local sockets.

— Generic Function: sockets:remote-name socket

For internet sockets, returns two values: the remote host and the remote port. For remote sockets, returns the remote filename.

— Generic Function: sockets:remote-host socket

Returns the remote host of socket. Works only on internet sockets.

— Generic Function: sockets:remote-port socket

Returns the remote port of socket - an (UNSIGNED-BYTE 16). Works only on internet sockets.

— Generic Function: sockets:remote-filename socket

Returns the remote filename of socket. Works only on local sockets.