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 20 - Initializing and Closing Open Transport Reference /


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 the OTAddress type:

struct OTAddress
   {
      OTAddressType fAddressType;
      UInt8       fAddress[1];
   };
typedef struct OTAddress OTAddress;
The OTAddress 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 the fAddressType 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".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998