Important: The information in this document is obsolete and should not be used for new development.
The OTData Structure
You use theOTData
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 inTNetbuf.buf
field. You can send discontiguous data using theOTSndUData
function, theOTSndURequest
function, theOTSndUReply
function, theOTSnd
function, theOTSndRequest
function, and theOTSndReply
function.
Each
- Note
- The
OTData
structure is an Apple extension.OTData
structure specifies the location of a data fragment, the size of the fragment, and the location of theOTData
structure that specifies the location and size of the next data fragment. The data information structure is defined by theOTData
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 aNULL
pointer for the last data fragment.fData
- A pointer to the data fragment.
fLen
- Specifies the size of the fragment in bytes.