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:
enumIndex
hostEnt
PRHostEnt
structure obtained from PR_GetHostByName
or PR_GetHostByAddr
.port
PRNetAddr
structure. This parameter is not checked for validity.address
PRNetAddr
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.