Important: The information in this document is obsolete and should not be used for new development.
OTCompareDDPAddresses
Compares two DDP address structures.C INTERFACE
Boolean OTCompareDDPAddresses(const DDPAddress* addr1, const DDPAddress* addr2);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
addr1- A pointer to one of the DDP address structures you wish to compare.
addr2- A pointer to the second DDP address structure you wish to compare.
- function result
- A value of
truemeans the two addresses match.DISCUSSION
TheOTCompareDDPAddressesfunction compares two DDP addresses for equality and returnstrueif the two addresses match. It cannot compare NBP or combined DDP-NBP addresses; using these address types always returnsfalse. This function uses the zero-matches-anything AppleTalk rule when doing the matching, which means that a value of 0 in any field results in an acceptable match (except for the node field, which must match exactly).