


GETXHOSTBYADDR(3N)      NETWORK FUNCTIONS      GETXHOSTBYADDR(3N)



NAME
     getxhostbyaddr - get X.25 host entry

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

     struct hostent * getxhostbyaddr(addr, length, type)
     struct ext_addr * addr;
     int length;
     int type;

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 an extended X.25 host address, _a_d_d_r,  its
     _l_e_n_g_t_h  in  bytes,  and  its  _t_y_p_e, getxhostbyaddr returns a
     pointer to an object with 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 address supplied matches with an address 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




SBE Inc.          Last change: 14 February 1991                 1






GETXHOSTBYADDR(3N)      NETWORK FUNCTIONS      GETXHOSTBYADDR(3N)



SEE ALSO
     endxhostent(3), getxhostbyname(3), getxhostent(3), setxhost-
     net(3), xhosts(5)

NOTES
     The only currently-supported value for _t_y_p_e is CCITTX25.

















































SBE Inc.          Last change: 14 February 1991                 2



