nlGetAllLocalAddr

get all the local addresses for the system

C Specification

NLaddress *nlGetAllLocalAddr(NLint *count);

Parameters

count

[out]Returns the number of addresses.

Description

nlGetAllLocalAddr returns a pointer to an array of all the local addresses with count set to the size of the array. This array is allocated internally and you must not modify it or free it. If you want to keep a list of the local addresses, you should copy the array.

Return values

A pointer to the address(es).

Error codes

NL_NULL_POINTER : A NULL pointer was passed to this function.
NL_SYSTEM_ERROR : A system Socket error has ocurred. The system error can be retrieved by calling nlGetSystemError.

See also

nlGetLocalAddr,
nlAddrToString


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!