Next: , Previous: Host and Other Inquiries, Up: Sockets


5.13.2 Internet Addresses and Socket Names

— Function: inet:string->address string

Returns the host address number (integer) for host string or #f if not found.

— Function: inet:address->string address

Converts an internet (integer) address to a string in numbers and dots notation.

— Function: inet:network address

Returns the network number (integer) specified from address or #f if not found.

— Function: inet:local-network-address address

Returns the integer for the address of address within its local network or #f if not found.

— Function: inet:make-address network local-address

Returns the Internet address of local-address in network.

The type socket-name is used for inquiries about open sockets in the following procedures:

— Function: getsockname socket

Returns the socket-name of socket. Returns #f if unsuccessful or socket is closed.

— Function: getpeername socket

Returns the socket-name of the socket connected to socket. Returns #f if unsuccessful or socket is closed.

— Function: socket-name:family socket-name

Returns the integer code for the family of socket-name.

— Function: socket-name:port-number socket-name

Returns the integer port number of socket-name.

— Function: socket-name:address socket-name

Returns the integer Internet address for socket-name.