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 TRequest Structure

You use the TRequest structure to specify the data being sent with the OTSndRequest function and the data being read with the OTRcvRequest 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 TRequest structure is defined by the TRequest data type.

struct TRequest
   {
      TNetbuf     data;
      TNetbuf     opt;
      OTSequence  sequence;
   };
   typedef struct TRequest TRequest;
Field Description
data
A TNetbuf structure specifying the location and size of the request data buffer.
opt
A TNetbuf structure specifying the location and size of the options buffer.
sequence
A 32-bit value that specifies the transaction ID of the current transaction.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998