Lisp Knowledgebase
Title: How to query TCP host address and name details
ID: 17001
Product: LispWorks Version: All OS: All | |||||||||
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. get-host-entry Function Summary Returns address or name information about a given host. Package comm Signature get-host-entry host &key fields => field-values Arguments host A number or a string. fields A list of keywords. Values field-values Values, one for each field. Description 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:
Examples | |||||||||
See Also: Workaround: Patch: | |||||||||
Hardware:N/A | |||||||||
Summary: | |||||||||
Bug#:4966, 7322 | |||||||||
Patch Enhancement#: | |||||||||
Reported: |