Vanilla Netrek Server Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:986] Re: [VANILLA-L:984] Re: [VANILLA-L:983] Re: metaserver is reborn
Anyone got code for going through multiple IP address returns from a
name server lookup? Is it really as simple as wandering through the
hostent struct returned by gethostbyname()?
struct hostent { /* Digital UNIX /usr/include/netdb.h */
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 */
};
--
James Cameron (james.cameron@digital.com)
Digital Equipment Corporation (Australia) Pty. Ltd. A.C.N. 000 446 800
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com
References: