Important: The information in this document is obsolete and should not be used for new development.
Status Codes
Open Transport uses status codes to return information about the success of an option negotiation. For individual options, Open Transport returns a status code in thestatus
field of theTOption
structure describing the option. For groups of options negotiated by a single call to theOTOptionManagement
function, the function also returns a status code that specifies the single worst result of the negotiation in theflags
field of theret
parameter.The constant names that are used to specify information about the outcome of option negotiation are given by the following enumeration:
enum { T_SUCCESS = 0x020, T_FAILURE = 0x040, T_PARTSUCCESS = 0x100, T_READONLY = 0x200, T_NOTSUPPORT = 0x400, T_UNSPEC = (~0 - 2), T_ALLOPT = 0 };Constant descriptions
T_SUCCESS
- The requested value was negotiated.
T_FAILURE
- The negotiation failed.
T_PARTSUCCESS
- A lower requested value was negotiated.
T_READONLY
- The option was read-only.
T_NOTSUPPORT
- The endpoint does not support the requested value.
T_UNSPEC
- The option does not have a fully specified value at this time. An endpoint provider might return this status code if it cannot currently access the option value. This might happen if the endpoint is in the state
T_UNBND
in systems where the protocol stack resides on a separate host.