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 28 - Advanced Topics Reference / Constants and Data Types


The OTData Structure

You use the OTData structure to specify the location and size of noncontiguous data. You use a pointer to this structure in place of a pointer to continguous data normally referenced in TNetbuf.buf field. You can send discontiguous data using the OTSndUData function, the OTSndURequest function, the OTSndUReply function, the OTSnd function, the OTSndRequest function, and the OTSndReply function.

Note
The OTData structure is an Apple extension.
Each OTData structure specifies the location of a data fragment, the size of the fragment, and the location of the OTData structure that specifies the location and size of the next data fragment. The data information structure is defined by the OTData type. For more information, see "Sending Noncontiguous Data".

struct OTData {
   void*    fNext;
   void*    fData;
   size_t   fLen;
};
typedef struct OTData OTData;
Field Description
fNext
A pointer to the OTData structure that describes the next data fragment. Specify a NULL pointer for the last data fragment.
fData
A pointer to the data fragment.
fLen
Specifies the size of the fragment in bytes.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998