Important: The information in this document is obsolete and should not be used for new development.
The Option Management Structure
The option management structure is used for thereqandretparameters of theOTOptionManagementfunction. Thereqparameter is used to verify or negotiate option values. Theretparameter returns information about an endpoint's default, current, or negotiated values.The option management structure is defined by the
TOptMgmtdata type.
struct TOptMgmt { TNetbuf opt; OTFlags flags; }; typedef struct TOptMgmt TOptMgmt
Field Description
opt- A
TNetbufstructure describing the buffer containing option information. Theopt.maxlenfield specifies the maximum size of the buffer. Theopt.lenfield specifies the actual size of the buffer, and theopt.buffield contains the address of the buffer.
- On input, as part of the
reqparameter, the buffer containsTOptionstructures describing the options to be negotiated or verified, or contains the names of options whose default or current values you are interested in. You must allocate this buffer, place in it the structures describing the options of interest, and set theopt.lenfield to the size of the buffer.
- On output, as part of the
retparameter, the buffer contains the actual values of the options you described in thereqparameter. You must allocate a buffer to hold the option information when the function returns and set theopt.maxlenfield to the maximum length of this buffer. When the function returns, theopt.lenfield is set to the actual length of the buffer.
flags- For the
reqparameter, theflagsfield indicates the action to be taken as defined by the action flags enumeration. For theretparameter, theflagsfield indicates the overall success or failure of the operation performed by theOTOptionManagementfunction, as defined by the status codes enumeration.