Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 30 - AppleTalk Reference / AppleTalk Addressing Reference
AppleTalk Utility Functions /


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).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998