Important: The information in this document is obsolete and should not be used for new development.
The TRequest Structure
You use theTRequeststructure to specify the data being sent with theOTSndRequestfunction and the data being read with theOTRcvRequestfunction. You pass a pointer to this structure as a parameter to each of these functions. When sending data you must initialize thebufandlenfields of all theTNetbufs. When receiving data, you must initialize thebufandmaxlenfields of all theTNetbufs.The
TRequeststructure is defined by theTRequestdata type.
struct TRequest { TNetbuf data; TNetbuf opt; OTSequence sequence; }; typedef struct TRequest TRequest;
Field Description
data- A
TNetbufstructure specifying the location and size of the request data buffer.opt- A
TNetbufstructure specifying the location and size of the options buffer.sequence- A 32-bit value that specifies the transaction ID of the current transaction.