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

You use the TDiscon structure to specify data sent with OTSndDisconnect and retrieved by the OTRcvDisconnect function. You pass this structure as a parameter to these functions.

The TDiscon structure is defined by the TDiscon data type.

struct TDiscon
   {
      TNetbuf     udata;
      OTReason    reason;
      OTSequence  sequence;
   };
   typedef struct TDiscon TDiscon;
Field Description
udata
A TNetbuf structure that references data sent with the OTSndDisconnect function or received by the OTRcvDisconnect function.
reason
A 32-bit value specifying an error code that identifies the reason for the disconnection. These codes are supplied by the protocol. For additional information, consult the documentation provided for the protocol you are using.
sequence
A 32-bit value specifying an outstanding connection request that has been rejected. This field is meaningful only when you have issued several connection requests to the same endpoint and are awaiting the results.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998