Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:35

0001 /******************************************************************************
0002 
0003 
0004 Copyright 1993, 1998  The Open Group
0005 
0006 Permission to use, copy, modify, distribute, and sell this software and its
0007 documentation for any purpose is hereby granted without fee, provided that
0008 the above copyright notice appear in all copies and that both that
0009 copyright notice and this permission notice appear in supporting
0010 documentation.
0011 
0012 The above copyright notice and this permission notice shall be included in
0013 all copies or substantial portions of the Software.
0014 
0015 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0018 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0019 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0020 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0021 
0022 Except as contained in this notice, the name of The Open Group shall not be
0023 used in advertising or otherwise to promote the sale, use or other dealings
0024 in this Software without prior written authorization from The Open Group.
0025 
0026 Author: Ralph Mor, X Consortium
0027 
0028 ******************************************************************************/
0029 
0030 #ifndef _ICE_H_
0031 #define _ICE_H_
0032 
0033 /*
0034  * Protocol Version
0035  */
0036 
0037 #define IceProtoMajor 1
0038 #define IceProtoMinor 0
0039 
0040 
0041 /*
0042  * Byte Order
0043  */
0044 
0045 #define IceLSBfirst     0
0046 #define IceMSBfirst     1
0047 
0048 
0049 /*
0050  * ICE minor opcodes
0051  */
0052 
0053 #define ICE_Error       0
0054 #define ICE_ByteOrder       1
0055 #define ICE_ConnectionSetup 2
0056 #define ICE_AuthRequired    3
0057 #define ICE_AuthReply       4
0058 #define ICE_AuthNextPhase   5
0059 #define ICE_ConnectionReply 6
0060 #define ICE_ProtocolSetup   7
0061 #define ICE_ProtocolReply   8
0062 #define ICE_Ping        9
0063 #define ICE_PingReply       10
0064 #define ICE_WantToClose     11
0065 #define ICE_NoClose     12
0066 
0067 
0068 /*
0069  * Error severity
0070  */
0071 
0072 #define IceCanContinue      0
0073 #define IceFatalToProtocol  1
0074 #define IceFatalToConnection    2
0075 
0076 
0077 /*
0078  * ICE error classes that are common to all protocols
0079  */
0080 
0081 #define IceBadMinor 0x8000
0082 #define IceBadState 0x8001
0083 #define IceBadLength    0x8002
0084 #define IceBadValue 0x8003
0085 
0086 
0087 /*
0088  * ICE error classes that are specific to the ICE protocol
0089  */
0090 
0091 #define IceBadMajor         0
0092 #define IceNoAuth           1
0093 #define IceNoVersion            2
0094 #define IceSetupFailed          3
0095 #define IceAuthRejected         4
0096 #define IceAuthFailed           5
0097 #define IceProtocolDuplicate        6
0098 #define IceMajorOpcodeDuplicate     7
0099 #define IceUnknownProtocol      8
0100 
0101 #endif /* _ICE_H_ */