nlAddrCompare

compares two addresses

C Specification

NLboolean nlAddrCompare(const NLaddress *address1, const NLaddress *address2)

Parameters

address1

[in]Specifies the first address.

address2

[in]Specifies the second address.

Description

nlAddrCompare compares two addresses to see if they are the same. For IP, the two addresses are the same if they have the same IP address and port number.

Return values

If the two addresses are the same, nlAddrCompare returns NL_TRUE, otherwise it returns NL_FALSE.

Error codes

NL_NULL_POINTER : One or more of the addresses was passed a NULL pointer.

See also

nlGetAddrFromName,
nlGetAddrFromNameAsync,
nlGetLocalAddr,
nlGetRemoteAddr


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!