Solstice X.25 9.2 Developer's Guide

8.12 getxhostbyname--Get X.25 Address by Name

Synopsis
#include <netx25/x25_proto.h>
 #include <netx25/xnetdb.h>

    struct xhostent *getxhostbyname(
      char *name
  );
Description

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.

Arguments

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. 

Return Value

A pointer to the xhostent structure. A return value of 0 indicates the name supplied is either invalid or unknown.