home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / ice / ice.h next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  2.6 KB  |  104 lines

  1. /* $XConsortium: ICE.h,v 1.6 94/04/17 20:15:23 mor Exp $ */
  2. /******************************************************************************
  3.  
  4.  
  5. Copyright (c) 1993  X Consortium
  6.  
  7. Permission is hereby granted, free of charge, to any person obtaining a copy
  8. of this software and associated documentation files (the "Software"), to deal
  9. in the Software without restriction, including without limitation the rights
  10. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. copies of the Software, and to permit persons to whom the Software is
  12. furnished to do so, subject to the following conditions:
  13.  
  14. The above copyright notice and this permission notice shall be included in
  15. all copies or substantial portions of the Software.
  16.  
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  20. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23.  
  24. Except as contained in this notice, the name of the X Consortium shall not be
  25. used in advertising or otherwise to promote the sale, use or other dealings
  26. in this Software without prior written authorization from the X Consortium.
  27.  
  28. Author: Ralph Mor, X Consortium
  29.  
  30. ******************************************************************************/
  31.  
  32. #ifndef _ICE_H_
  33. #define _ICE_H_
  34.  
  35. /*
  36.  * Protocol Version
  37.  */
  38.  
  39. #define IceProtoMajor 1
  40. #define IceProtoMinor 0
  41.  
  42.  
  43. /*
  44.  * Byte Order
  45.  */
  46.  
  47. #define IceLSBfirst        0
  48. #define IceMSBfirst        1
  49.  
  50.  
  51. /*
  52.  * ICE minor opcodes
  53.  */
  54.  
  55. #define ICE_Error         0
  56. #define ICE_ByteOrder        1
  57. #define ICE_ConnectionSetup    2
  58. #define ICE_AuthRequired    3
  59. #define ICE_AuthReply         4
  60. #define ICE_AuthNextPhase    5
  61. #define ICE_ConnectionReply    6
  62. #define ICE_ProtocolSetup    7
  63. #define ICE_ProtocolReply    8
  64. #define ICE_Ping        9
  65. #define ICE_PingReply        10
  66. #define ICE_WantToClose        11
  67. #define ICE_NoClose        12
  68.  
  69.  
  70. /*
  71.  * Error severity
  72.  */
  73.  
  74. #define IceCanContinue        0
  75. #define IceFatalToProtocol    1
  76. #define IceFatalToConnection    2
  77.  
  78.  
  79. /*
  80.  * ICE error classes that are common to all protocols
  81.  */
  82.  
  83. #define IceBadMinor    0x8000
  84. #define IceBadState    0x8001
  85. #define IceBadLength    0x8002
  86. #define IceBadValue    0x8003
  87.  
  88.  
  89. /*
  90.  * ICE error classes that are specific to the ICE protocol
  91.  */
  92.  
  93. #define IceBadMajor            0
  94. #define IceNoAuth            1
  95. #define IceNoVersion            2
  96. #define IceSetupFailed            3
  97. #define IceAuthRejected            4
  98. #define IceAuthFailed            5
  99. #define IceProtocolDuplicate        6
  100. #define IceMajorOpcodeDuplicate        7
  101. #define IceUnknownProtocol        8
  102.  
  103. #endif /* _ICE_H_ */
  104.