z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


IsLocalHost

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014