Evaluates each of the possible addresses of a PRHostEnt structure, acquired from PR_GetHostByName or PR_GetHostByAddr.
#include <prnetdb.h> PRIntn PR_EnumerateHostEnt( PRIntn enumIndex, const PRHostEnt *hostEnt, PRUint16 port, PRNetAddr *address);
The function has the following parameters:
enumIndexhostEntPRHostEnt structure obtained from PR_GetHostByName or PR_GetHostByAddr.portPRNetAddr structure. This parameter is not checked for validity.addressPRNetAddr structure. On output, this structure is filled in by the runtime if the result of the call is greater than 0.The function returns one of the following values:
enumIndex parameter for the next call of the enumerator. If the function returns 0, the enumeration is ended.PR_GetError.PR_EnumerateHostEnt is a stateless enumerator. The principle input, the PRHostEnt structure, is not modified.