home *** CD-ROM | disk | FTP | other *** search
- /*
- * Structures returned by network data base library. All addresses are
- * supplied in host order, and returned in network order (suitable for
- * use in system calls).
- */
- struct mx_data {
- int preference;
- char *host;
- };
-
- struct hostent {
- char *h_name; /* official name of host */
- char **h_aliases; /* alias list */
- int h_addrtype; /* host address type */
- int h_length; /* length of address */
- char **h_addr_list; /* list of addresses from name server */
- struct mx_data **h_mx; /* list of mail exchange hosts */
- #define h_addr h_addr_list[0] /* address, for backward compatiblity */
- };
-
-
- extern struct hostent *gethostbyname( char *, int );
- extern int mxresolve( char * );
-
-