#include <netx25/x25_proto.h> #include <netx25/xnetdb.h> struct xhostent *getxhostbyname( char *name );
getxhostbyname searches the xhosts file for an entry with a matching host name.By default, this file is located in the /etc/SUNWconn/x25 directory. It returns a pointer to a xhostent structure containing information on the entry.
The parameters are:
Table 8-13 getxhostbyname parameters
Parameter |
Description |
---|---|
name |
A pointer to the address of a string containing the name of the host whose entry you want. |
A pointer to the xhostent structure. A return value of 0 indicates the name supplied is either invalid or unknown.