Important: The information in this document is obsolete and should not be used for new development.
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 theNBPAddress
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.