Important: The information in this document is obsolete and should not be used for new development.
The OTAddress Structure
Addresses in Open Transport all begin with a common structure, which is followed by fields that are protocol-specific. The common structure is defined by theOTAddress
type:
struct OTAddress { OTAddressType fAddressType; UInt8 fAddress[1]; }; typedef struct OTAddress OTAddress;TheOTAddress
type itself is abstract. You would not declare a structure of this type because it does not contain any address information. However address formats defined by Open Transport protocols all use thefAddressType
field to describe the format of the fields to follow, which do contain address information. For an example of how this data type is used in creating an address, see the section "Addressing in Open Transport".