home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / internet / tcpipsrc / h / if / resuser < prev    next >
Text File  |  1993-12-18  |  735b  |  25 lines

  1. /*
  2.  * Structures returned by network data base library.  All addresses are
  3.  * supplied in host order, and returned in network order (suitable for
  4.  * use in system calls).
  5.  */
  6. struct mx_data {
  7.   int preference;
  8.   char *host;
  9.   };
  10.  
  11. struct    hostent {
  12.     char    *h_name;           /* official name of host */
  13.     char    **h_aliases;       /* alias list */
  14.     int    h_addrtype;            /* host address type */
  15.     int    h_length;              /* length of address */
  16.     char    **h_addr_list;     /* list of addresses from name server */
  17.     struct    mx_data **h_mx;    /* list of mail exchange hosts */
  18. #define    h_addr    h_addr_list[0] /* address, for backward compatiblity */
  19. };
  20.  
  21.  
  22. extern struct hostent *gethostbyname( char *, int );
  23. extern int mxresolve( char * );
  24.  
  25.