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 /


OTGetNBPEntityLengthAsAddress

Obtains the size an NBP entity structure would be if it were formatted as a string.

C INTERFACE
size_t OTGetNBPEntityLengthAsAddress(const NBPEntity* nbpEntity);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
nbpEntity
A pointer to the NBP entity structure you wish to determine the length of.

function result The size of an NBP entity structure.
DISCUSSION
The OTGetNBPEntityLengthAsAddress function obtains the number of bytes needed to store an NBP entity structure into the name part of an NBP or combined DDP-NBP address structure.

To store an NBP entity structure as an NBP address string, use the OTSetAddressFromNBPEntity function .

SPECIAL CONSIDERATIONS
Use this function to determine the appropriate buffer size for an NBP entity before using the OTSetAddressFromNBPEntity function.

SEE ALSO
"The NBP Address Structure".

"The Combined DDP-NBP Address Structure".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998