cMsgConstants.h

Go to the documentation of this file.
00001 /*----------------------------------------------------------------------------*
00002  *
00003  *  Copyright (c) 2004        Southeastern Universities Research Association, *
00004  *                            Thomas Jefferson National Accelerator Facility  *
00005  *                                                                            *
00006  *    This software was developed under a United States Government license    *
00007  *    described in the NOTICE file included as part of this distribution.     *
00008  *                                                                            *
00009  *    E.Wolin, 14-Jul-2004, Jefferson Lab                                     *
00010  *                                                                            *
00011  *    Authors: Elliott Wolin                                                  *
00012  *             wolin@jlab.org                    Jefferson Lab, MS-6B         *
00013  *             Phone: (757) 269-7365             12000 Jefferson Ave.         *
00014  *             Fax:   (757) 269-5800             Newport News, VA 23606       *
00015  *                                                                            *
00016  *             Carl Timmer                                                    *
00017  *             timmer@jlab.org                   Jefferson Lab, MS-6B         *
00018  *             Phone: (757) 269-5130             12000 Jefferson Ave.         *
00019  *             Fax:   (757) 269-5800             Newport News, VA 23606       *
00020  *                                                                            *
00021  * Description:                                                               *
00022  *                                                                            *
00023  *  Defines cMsg API and return codes                                         *
00024  *                                                                            *
00025  *                                                                            *
00026  *----------------------------------------------------------------------------*/
00027  
00028 #ifndef _cMsgConstants_h
00029 #define _cMsgConstants_h
00030 
00031 
00032 /* endian values */
00034 #define CMSG_ENDIAN_BIG      0
00035 
00036 #define CMSG_ENDIAN_LITTLE   1
00037 
00038 #define CMSG_ENDIAN_LOCAL    2
00039 
00040 #define CMSG_ENDIAN_NOTLOCAL 3
00041 
00042 #define CMSG_ENDIAN_SWITCH   4
00043 
00044 
00045 /* debug levels */
00047 #define CMSG_DEBUG_NONE    0
00048 
00049 #define CMSG_DEBUG_SEVERE  1
00050 
00051 #define CMSG_DEBUG_ERROR   2
00052 
00053 #define CMSG_DEBUG_WARN    3
00054 
00055 #define CMSG_DEBUG_INFO    4
00056 
00057 
00058 /* regime values */
00060 #define CMSG_REGIME_MEDIUM 0
00061 
00062 #define CMSG_REGIME_LOW    1
00063 
00064 #define CMSG_REGIME_HIGH   2
00065 
00066 /* failover values */
00068 #define CMSG_FAILOVER_ANY        0
00069 
00070 #define CMSG_FAILOVER_CLOUD      1
00071 
00072 #define CMSG_FAILOVER_CLOUD_ONLY  2
00073 
00074 /* cloud values */
00076 #define CMSG_CLOUD_ANY      0
00077 
00078 #define CMSG_CLOUD_LOCAL        1
00079 
00080 
00081 /* shutdown flags */
00083 #define CMSG_SHUTDOWN_INCLUDE_ME 1
00084 
00085 
00087 enum {
00088   CMSG_OK              = 0, 
00089   CMSG_ERROR,               
00090   CMSG_TIMEOUT,             
00091   CMSG_NOT_IMPLEMENTED,     
00092   CMSG_BAD_ARGUMENT,        
00093   CMSG_BAD_FORMAT,          
00094   CMSG_BAD_DOMAIN_TYPE,     
00095   CMSG_ALREADY_EXISTS,      
00096   CMSG_NOT_INITIALIZED,     
00097   CMSG_ALREADY_INIT,        
00098   CMSG_LOST_CONNECTION,     
00099   CMSG_NETWORK_ERROR,       
00100   CMSG_SOCKET_ERROR,        
00101   CMSG_PEND_ERROR,          
00102   CMSG_ILLEGAL_MSGTYPE,     
00103   CMSG_OUT_OF_MEMORY,       
00104   CMSG_OUT_OF_RANGE,        
00105   CMSG_LIMIT_EXCEEDED,      
00106   CMSG_BAD_DOMAIN_ID,       
00107   CMSG_BAD_MESSAGE,         
00108   CMSG_WRONG_DOMAIN_TYPE,   
00109   CMSG_NO_CLASS_FOUND,      
00110   CMSG_DIFFERENT_VERSION,   
00111   CMSG_WRONG_PASSWORD,      
00112   CMSG_SERVER_DIED,         
00113   CMSG_ABORT                
00114 };
00115 
00116 
00120 enum {
00121   CMSG_CP_STR    = 10, 
00122   CMSG_CP_FLT,         
00123   CMSG_CP_DBL,         
00124   CMSG_CP_INT8,        
00125   CMSG_CP_INT16,       
00126   CMSG_CP_INT32,       
00127   CMSG_CP_INT64,       
00128   CMSG_CP_UINT8,       
00129   CMSG_CP_UINT16,      
00130   CMSG_CP_UINT32,      
00131   CMSG_CP_UINT64,      
00132   CMSG_CP_MSG,         
00133   CMSG_CP_BIN,         
00135   CMSG_CP_STR_A,       
00136   CMSG_CP_FLT_A,       
00137   CMSG_CP_DBL_A,       
00138   CMSG_CP_INT8_A,      
00139   CMSG_CP_INT16_A,     
00140   CMSG_CP_INT32_A,     
00141   CMSG_CP_INT64_A,     
00142   CMSG_CP_UINT8_A,     
00143   CMSG_CP_UINT16_A,    
00144   CMSG_CP_UINT32_A,    
00145   CMSG_CP_UINT64_A,    
00146   CMSG_CP_MSG_A,       
00147   CMSG_CP_BIN_A        
00148 };
00149 
00150 
00151 
00152 #endif /* _cMsgConstants_h */

Generated on Fri Oct 21 09:54:16 2011 for cMsg Messaging System by  doxygen 1.3.9.1