Enumerates each of the possible network addresses of a PRAddrInfo structure, acquired from PR_GetAddrInfoByName.
#include <prnetdb.h> void *PR_EnumerateAddrInfo( void *enumPtr, const PRAddrInfo *addrInfo, PRUint16 port, PRNetAddr *result);
The function has the following parameters:
enumPtr NULL. To continue an enumeration (thereby getting successive addresses from the PRAddrInfo structure), the value should be set to the function's last returned value. The enumeration is complete when a value of NULL is returned. addrInfo PRAddrInfo structure returned by PR_GetAddrInfoByName. port PRNetAddr structure. This parameter is not checked for validity. result PRNetAddr structure. On output, this structure is filled in by the runtime if the result of the call is not NULL. PR_EnumerateAddrInfo is a stateless enumerator. The principle input, the PRAddrInfo structure, is not modified.