


GETXHOSTBYNAME(3N)      NETWORK FUNCTIONS      GETXHOSTBYNAME(3N)



NAME
     getxhostbyname - get X.25 host entry

SYNOPSIS
     #include <sys/snet/x25_proto.h>
     #include <xnetdb.h>

     struct hostent * getxhostbyname(nam)
     char *nam;

AVAILABILITY
     The routine is part  of  the  X.25  Network  Library.   This
     library  is available with the SBE X.25 software package for
     the VCOM family of synchronous communications controllers.

DESCRIPTION
     Given a pointer to a name string  containing  an  X.25  host
     name,  getxhostbyname  returns a pointer to an object having
     the following structure

          struct hostent {
              char    *h_name;
              char    **h_aliases;
              int h_addrtype;
              int h_length;
              char    *h_addr;
              }

     The members of this structure are:

     h_name      name of the X.25 host.

     h_aliases   a zero-terminated array of alternative names for
                 the X.25 host.

     h_addrtype  the type of the address being returned.

     h_length    the length, in bytes, of the address h_addr.

     h_addr      a pointer to the network address  for  the  X.25
                 host.

RETURN VALUES:
     If the X.25 host name supplied matches with a  name  in  the
     /etc/xhosts  database, a pointer to the hostent structure is
     returned.  If no match is found, a NULL pointer is returned.

FILES
     /etc/xhosts

SEE ALSO
     endxhostent(3),       getxhostent(3),        setxhostent(3),



SBE Inc.          Last change: 14 February 1991                 1






GETXHOSTBYNAME(3N)      NETWORK FUNCTIONS      GETXHOSTBYNAME(3N)



     getxhostbyaddr(3), xhosts(5),






















































SBE Inc.          Last change: 14 February 1991                 2



