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

You use the TUnitReply structure to specify the data being sent with the OTSndUReply function and the data being read with the OTRcvUReply function. You pass a pointer to the TUnitReply 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 TUnitReply structure is defined by the TUnitReply data type.

struct TUnitReply
   {
      TNetbuf     addr;
      TNetbuf     opt;
      TNetbuf     udata;
      OTSequence  sequence;
   };
   typedef struct TUnitReplyTUnitReply;
Field Description
addr
A TNetbuf structure for address information.
opt
A TNetbuf structure for option information associated with this reply.
udata
A TNetbuf structure for reply 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