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
Constants and Data Types


The NBP Address Structure

You use the NBP address format, specified by the NBP address structure, to identify the NBP name associated with your endpoint. The NBP address structure is defined by the NBPAddress data type.

struct NBPAddress
{
   OTAddressType  fAddressType
   UInt8          fNBPNameBuffer[kNBPEntityBufferSize];
};
typedef struct NBPAddress NBPAddress;
FIELD DESCRIPTIONS
fAddressType
A number that specifies the format of the address. For an NBP address this is the constant AF_ATALK_NBP.
fNBPNameBuffer
An array of chars that specifies the buffer that holds the NBP name string. The string specifies an endpoint name in the format name:type@zone and is not null terminated. You can precede colons (:), at signs (@), and backslash (\) characters with a backslash if you want to include them as part of
the name.
The constant kNBPEntityBufferSize specifies the maximum size of the buffer, currently defined to be 105 bytes. This permits a string whose name, type, and zone fields each contain the maximum 32 characters, plus 2 bytes for the separator characters (: and @) and 7 bytes for an optional pad byte and 6 escape characters, which are indicated by the backslash (\) followed by a colon (:), at sign (@), or another backslash.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998