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
true means the two addresses match.
DISCUSSION
The OTCompareDDPAddresses function compares two DDP addresses for equality and returns true if the two addresses match. It cannot compare NBP or combined DDP-NBP addresses; using these address types always returns false. 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).