Important: The information in this document is obsolete and should not be used for new development.
Action Flags
Thereq
parameter to theOTOptionManagement
function contains aflags
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 thereq
parameter.- The overall result of the negotiation is specified by the
flags
field of theret
parameter. Theopt.buf
field of theret
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 thereq
parameter.- The overall result of the verification is specified by the
flags
field of theret
parameter. Specific verification results are returned in theopt.buf
field of theret
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 optionT_ALLOPT
in the options buffer.- Option values are returned in the
opt.buf
field of theret
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 optionT_ALLOPT
in the options buffer.- Option values are returned in the
opt.buf
field of theret
parameter.