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 22 - Endpoints Reference / Constants and Data Types


The TUnitRequest Structure

You use the TUnitRequest structure to specify information about the data being sent with the OTSndURequest function and the data being read with the OTRcvURequest function ; you pass a pointer to this structure as a parameter to each of these functions. When sending data you must initialize the buf and len fields of all the TNetbufs. When receiving data, you must initialize the buf and maxlen fields of all the TNetbufs.

The TUnitRequest structure is defined by the TUnitRequest data type.

struct TUnitRequest
{
      TNetbuf     addr;
      TNetbuf     opt;
      TNetbuf     udata;
      OTSequence  sequence;
   };
   typedef struct TUnitRequest TUnitRequest;
Field Description
addr
A TNetbuf structure for address information.
opt
A TNetbuf structure for option information associated with this request.
udata
A TNetbuf structure for request data.
sequence
A 32-bit value that specifies the transaction ID for this transaction.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998