jpayne@69: /****************************************************************************** jpayne@69: jpayne@69: jpayne@69: Copyright 1993, 1998 The Open Group jpayne@69: jpayne@69: Permission to use, copy, modify, distribute, and sell this software and its jpayne@69: documentation for any purpose is hereby granted without fee, provided that jpayne@69: the above copyright notice appear in all copies and that both that jpayne@69: copyright notice and this permission notice appear in supporting jpayne@69: documentation. jpayne@69: jpayne@69: The above copyright notice and this permission notice shall be included in jpayne@69: all copies or substantial portions of the Software. jpayne@69: jpayne@69: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR jpayne@69: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, jpayne@69: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE jpayne@69: OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN jpayne@69: AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN jpayne@69: CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. jpayne@69: jpayne@69: Except as contained in this notice, the name of The Open Group shall not be jpayne@69: used in advertising or otherwise to promote the sale, use or other dealings jpayne@69: in this Software without prior written authorization from The Open Group. jpayne@69: jpayne@69: Author: Ralph Mor, X Consortium jpayne@69: jpayne@69: ******************************************************************************/ jpayne@69: jpayne@69: #ifndef _ICE_H_ jpayne@69: #define _ICE_H_ jpayne@69: jpayne@69: /* jpayne@69: * Protocol Version jpayne@69: */ jpayne@69: jpayne@69: #define IceProtoMajor 1 jpayne@69: #define IceProtoMinor 0 jpayne@69: jpayne@69: jpayne@69: /* jpayne@69: * Byte Order jpayne@69: */ jpayne@69: jpayne@69: #define IceLSBfirst 0 jpayne@69: #define IceMSBfirst 1 jpayne@69: jpayne@69: jpayne@69: /* jpayne@69: * ICE minor opcodes jpayne@69: */ jpayne@69: jpayne@69: #define ICE_Error 0 jpayne@69: #define ICE_ByteOrder 1 jpayne@69: #define ICE_ConnectionSetup 2 jpayne@69: #define ICE_AuthRequired 3 jpayne@69: #define ICE_AuthReply 4 jpayne@69: #define ICE_AuthNextPhase 5 jpayne@69: #define ICE_ConnectionReply 6 jpayne@69: #define ICE_ProtocolSetup 7 jpayne@69: #define ICE_ProtocolReply 8 jpayne@69: #define ICE_Ping 9 jpayne@69: #define ICE_PingReply 10 jpayne@69: #define ICE_WantToClose 11 jpayne@69: #define ICE_NoClose 12 jpayne@69: jpayne@69: jpayne@69: /* jpayne@69: * Error severity jpayne@69: */ jpayne@69: jpayne@69: #define IceCanContinue 0 jpayne@69: #define IceFatalToProtocol 1 jpayne@69: #define IceFatalToConnection 2 jpayne@69: jpayne@69: jpayne@69: /* jpayne@69: * ICE error classes that are common to all protocols jpayne@69: */ jpayne@69: jpayne@69: #define IceBadMinor 0x8000 jpayne@69: #define IceBadState 0x8001 jpayne@69: #define IceBadLength 0x8002 jpayne@69: #define IceBadValue 0x8003 jpayne@69: jpayne@69: jpayne@69: /* jpayne@69: * ICE error classes that are specific to the ICE protocol jpayne@69: */ jpayne@69: jpayne@69: #define IceBadMajor 0 jpayne@69: #define IceNoAuth 1 jpayne@69: #define IceNoVersion 2 jpayne@69: #define IceSetupFailed 3 jpayne@69: #define IceAuthRejected 4 jpayne@69: #define IceAuthFailed 5 jpayne@69: #define IceProtocolDuplicate 6 jpayne@69: #define IceMajorOpcodeDuplicate 7 jpayne@69: #define IceUnknownProtocol 8 jpayne@69: jpayne@69: #endif /* _ICE_H_ */