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 25 - Option Management Reference / Constants and Data Types


Action Flags

The req parameter to the OTOptionManagement function contains a flags field that you set to specify what action the function should take. The constant names that you can specify for this field are given by the following enumeration:

enum
   {
      T_NEGOTIATE = 0x004,
      T_CHECK     = 0x008,
      T_DEFAULT   = 0x010,
      T_CURRENT   = 0x080,
   };
Constant descriptions

T_NEGOTIATE
Negotiate the option values specified in the opt.buf field of the req parameter.
The overall result of the negotiation is specified by the flags field of the ret parameter. The opt.buf field of the ret parameter points to a buffer where negotiated values for each option are placed.
T_CHECK
Verify whether the endpoint supports the options referenced by the opt.buf field of the req parameter.
The overall result of the verification is specified by the flags field of the ret parameter. Specific verification results are returned in the opt.buf field of the ret parameter.
T_DEFAULT
Retrieve the default value for those options in the buffer referenced by the req->opt.buf field. To retrieve default values for all the options supported by an endpoint, include just the option T_ALLOPT in the options buffer.
Option values are returned in the opt.buf field of the ret parameter.
T_CURRENT
Retrieve the current value for those options that the endpoint supports and that are specified in the buffer referenced by the req->opt.buf field. To retrieve current values for all the options that an endpoint supports, include just the option T_ALLOPT in the options buffer.
Option values are returned in the opt.buf field of the ret parameter.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998