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 /* shutdown flags */
00060 #define CMSG_SHUTDOWN_INCLUDE_ME 1
00061 
00062 
00063 
00065 enum {
00066   CMSG_OK              = 0, 
00067   CMSG_ERROR,               
00068   CMSG_TIMEOUT,             
00069   CMSG_NOT_IMPLEMENTED,     
00070   CMSG_BAD_ARGUMENT,        
00071   CMSG_BAD_FORMAT,          
00072   CMSG_BAD_DOMAIN_TYPE,     
00073   CMSG_ALREADY_EXISTS,      
00074   CMSG_NOT_INITIALIZED,     
00075   CMSG_ALREADY_INIT,        
00076   CMSG_LOST_CONNECTION,     
00077   CMSG_NETWORK_ERROR,       
00078   CMSG_SOCKET_ERROR,        
00079   CMSG_PEND_ERROR,          
00080   CMSG_ILLEGAL_MSGTYPE,     
00081   CMSG_OUT_OF_MEMORY,       
00082   CMSG_OUT_OF_RANGE,        
00083   CMSG_LIMIT_EXCEEDED,      
00084   CMSG_BAD_DOMAIN_ID,       
00085   CMSG_BAD_MESSAGE,         
00086   CMSG_WRONG_DOMAIN_TYPE,   
00087   CMSG_NO_CLASS_FOUND,      
00088   CMSG_DIFFERENT_VERSION,   
00089   CMSG_WRONG_PASSWORD,      
00090   CMSG_SERVER_DIED,         
00091   CMSG_ABORT                
00092 };
00093 
00094 
00098 enum {
00099   CMSG_CP_STR    = 10, 
00100   CMSG_CP_FLT,         
00101   CMSG_CP_DBL,         
00102   CMSG_CP_INT8,        
00103   CMSG_CP_INT16,       
00104   CMSG_CP_INT32,       
00105   CMSG_CP_INT64,       
00106   CMSG_CP_UINT8,       
00107   CMSG_CP_UINT16,      
00108   CMSG_CP_UINT32,      
00109   CMSG_CP_UINT64,      
00110   CMSG_CP_MSG,         
00111   CMSG_CP_BIN,         
00113   CMSG_CP_STR_A,       
00114   CMSG_CP_FLT_A,       
00115   CMSG_CP_DBL_A,       
00116   CMSG_CP_INT8_A,      
00117   CMSG_CP_INT16_A,     
00118   CMSG_CP_INT32_A,     
00119   CMSG_CP_INT64_A,     
00120   CMSG_CP_UINT8_A,     
00121   CMSG_CP_UINT16_A,    
00122   CMSG_CP_UINT32_A,    
00123   CMSG_CP_UINT64_A,    
00124   CMSG_CP_MSG_A        
00125 };
00126 
00127 
00128 
00129 #endif /* _cMsgConstants_h */

Generated on Wed Feb 6 13:37:49 2008 for cMsg Messaging System by  doxygen 1.3.9.1