Previous: Local (Unix) Domain Sockets, Up: Networking
Presently name service is implemented by calling out to the
getaddrinfo(3) and gethostinfo(3), or to
gethostbyname(3) gethostbyaddr(3) on platforms where
the preferred functions are not available. The exact details of
the name resolving process (for example the choice of whether
DNS or a hosts file is used for lookup) are platform dependent.
Class precedence list:
host-ent, standard-object, tSlots:
name— initarg::name; reader:sb-bsd-sockets:host-ent-nameThe name of the host
addresses— initarg::addresses; reader:sb-bsd-sockets:host-ent-addressesA list of addresses for this host.
This class represents the results of an address lookup.
Returns a
host-entinstance forhost-nameor signals aname-service-error.host-namemay also be anipaddress in dotted quad notation or some other weird stuff-see gethostbyname(3) or getaddrinfo(3) for the details.