/*
 *  VXnetdb.h
 *
 *  since netdb functions are not supported by vxWorks,
 *  our own implementations are provided for the calls	
 *  needed.  This is a subset of the UNIX netdb.h that
 *  defines the support routines necessary for this code.
 */

/*
 * 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	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 */
#define	h_addr	h_addr_list[0]	/* address, for backward compatiblity */
};

struct	servent {
	char	*s_name;	/* official service name */
	char	**s_aliases;	/* alias list */
	int	s_port;		/* port # */
	char	*s_proto;	/* protocol to use */
};

struct hostent	*gethostbyname(), *gethostbyaddr(), *gethostent();
struct servent	*getservbyname(), *getservbyport(), *getservent();
