This procedure returns the correct host class for Name,
which can be a host name or a dotted decimal address. Figure 1 shows an example of the IsLocalHost procedure.
The host classes are:
- HOSTlocal
- An internet address for the local host
- HOSTloopback
- One of the dummy internet addresses used to designate various
levels of loopback testing
- HOSTremote
- A known host name for some remote host
- HOSTunknown
- An unknown host name (or other error)
Figure 1. IsLocalHost example procedure IsLocalHost
(
const Name: string;
var Class: HostClassType
);
external;
- Parameter
- Description
- Name
- The host name. The maximum name
length is 255 characters.
- Class
- The
host class