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 thereq
andret
parameters of theOTOptionManagement
function. Thereq
parameter is used to verify or negotiate option values. Theret
parameter returns information about an endpoint's default, current, or negotiated values.The option management structure is defined by the
TOptMgmt
data type.
struct TOptMgmt { TNetbuf opt; OTFlags flags; }; typedef struct TOptMgmt TOptMgmt
Field Description
opt
- A
TNetbuf
structure describing the buffer containing option information. Theopt.maxlen
field specifies the maximum size of the buffer. Theopt.len
field specifies the actual size of the buffer, and theopt.buf
field contains the address of the buffer.
- On input, as part of the
req
parameter, the buffer containsTOption
structures 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.len
field to the size of the buffer.
- On output, as part of the
ret
parameter, the buffer contains the actual values of the options you described in thereq
parameter. You must allocate a buffer to hold the option information when the function returns and set theopt.maxlen
field to the maximum length of this buffer. When the function returns, theopt.len
field is set to the actual length of the buffer.
flags
- For the
req
parameter, theflags
field indicates the action to be taken as defined by the action flags enumeration. For theret
parameter, theflags
field indicates the overall success or failure of the operation performed by theOTOptionManagement
function, as defined by the status codes enumeration.