Mac OS 9
OTBuffer Struct Reference

#include <OpenTransport.h>

Data Fields

void * fLink
 
void * fLink2
 
struct OTBufferfNext
 
UInt8 * fData
 
ByteCount fLen
 
void * fSave
 
UInt8 fBand
 
UInt8 fType
 
UInt8 fPad1
 
UInt8 fFlags
 

Detailed Description

OTBuffer is used for no-copy receives. When receiving, you can set the receive length to kOTNetbufDataIsOTBufferStar and then pass the address of an OTBuffer* as the receive buffer. OT will fill it out to point to a chain of OTBuffers. When you are done with it, you must call the OTReleaseBuffer function. For best performance, you need to call OTReleaseBuffer quickly. Only data netbufs may use this - no netbufs for addresses or options, or the like. Any OTBuffer returned to you by OT is read only! The astute will notice that this has a high correlation with the STREAMS msgb data type. The fields are commented with their corresponding msgb field name.


The documentation for this struct was generated from the following file: