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


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 the status field of the TOption structure describing the option. For groups of options negotiated by a single call to the OTOptionManagement function, the function also returns a status code that specifies the single worst result of the negotiation in the flags field of the ret 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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998