Title: How to query TCP host address and name details
|Description: The C functions gethostbyname() and gethostbyaddr() can be used to find details of hosts from TCP naming services. These can be called easily from Lisp via the function COMM:GET-HOST-ENTRY documented below.|
Returns address or name information about a given host.
get-host-entry host &key fields => field-values
A number or a string.
A list of keywords.
Values, one for each field.
Using whatever host naming services are configured on the current machine, get-host-entry returns address or name information about the given host. NIL is returned if the host is unknown.
The host argument can be one of the following:
The fields argument is a list of keywords describing what information to return for the host. If get-host-entry succeeds, it returns multiple values, one value for each field specified. The following fields are allowed:
|See Also: |