cMsg Messaging System  6.0
All Files Functions Variables Typedefs Enumerator Macros
cMsgConstants.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*
2  *
3  * Copyright (c) 2004 Southeastern Universities Research Association, *
4  * Thomas Jefferson National Accelerator Facility *
5  * *
6  * This software was developed under a United States Government license *
7  * described in the NOTICE file included as part of this distribution. *
8  * *
9  * E.Wolin, 14-Jul-2004, Jefferson Lab *
10  * *
11  * Authors: Elliott Wolin *
12  * wolin@jlab.org Jefferson Lab, MS-6B *
13  * Phone: (757) 269-7365 12000 Jefferson Ave. *
14  * Fax: (757) 269-5800 Newport News, VA 23606 *
15  * *
16  * Carl Timmer *
17  * timmer@jlab.org Jefferson Lab, MS-6B *
18  * Phone: (757) 269-5130 12000 Jefferson Ave. *
19  * Fax: (757) 269-5800 Newport News, VA 23606 *
20  * *
21  * Description: *
22  * *
23  * Defines cMsg API and return codes *
24  * *
25  * *
26  *----------------------------------------------------------------------------*/
27 
28 #ifndef _cMsgConstants_h
29 #define _cMsgConstants_h
30 
31 
32 /* endian values */
34 #define CMSG_ENDIAN_BIG 0
36 #define CMSG_ENDIAN_LITTLE 1
38 #define CMSG_ENDIAN_LOCAL 2
40 #define CMSG_ENDIAN_NOTLOCAL 3
42 #define CMSG_ENDIAN_SWITCH 4
43 
44 
45 /* debug levels */
47 #define CMSG_DEBUG_NONE 0
49 #define CMSG_DEBUG_SEVERE 1
51 #define CMSG_DEBUG_ERROR 2
53 #define CMSG_DEBUG_WARN 3
55 #define CMSG_DEBUG_INFO 4
56 
57 
58 /* regime values */
60 #define CMSG_REGIME_MEDIUM 0
62 #define CMSG_REGIME_LOW 1
64 #define CMSG_REGIME_HIGH 2
65 
66 /* failover values */
68 #define CMSG_FAILOVER_ANY 0
70 #define CMSG_FAILOVER_CLOUD 1
72 #define CMSG_FAILOVER_CLOUD_ONLY 2
73 
74 /* cloud values */
76 #define CMSG_CLOUD_ANY 0
78 #define CMSG_CLOUD_LOCAL 1
79 
80 
81 /* shutdown flags */
83 #define CMSG_SHUTDOWN_INCLUDE_ME 1
84 
85 
87 enum {
88  CMSG_OK = 0,
113  CMSG_ABORT
114 };
115 
116 
120 enum {
121  CMSG_CP_STR = 10,
148 };
149 
150 
151 
152 #endif /* _cMsgConstants_h */
@ CMSG_PEND_ERROR
Definition: cMsgConstants.h:101
@ CMSG_BAD_FORMAT
Definition: cMsgConstants.h:93
@ CMSG_ERROR
Definition: cMsgConstants.h:89
@ CMSG_WRONG_DOMAIN_TYPE
Definition: cMsgConstants.h:108
@ CMSG_DIFFERENT_VERSION
Definition: cMsgConstants.h:110
@ CMSG_LOST_CONNECTION
Definition: cMsgConstants.h:98
@ CMSG_LIMIT_EXCEEDED
Definition: cMsgConstants.h:105
@ CMSG_NO_CLASS_FOUND
Definition: cMsgConstants.h:109
@ CMSG_WRONG_PASSWORD
Definition: cMsgConstants.h:111
@ CMSG_BAD_ARGUMENT
Definition: cMsgConstants.h:92
@ CMSG_ABORT
Definition: cMsgConstants.h:113
@ CMSG_ALREADY_INIT
Definition: cMsgConstants.h:97
@ CMSG_BAD_MESSAGE
Definition: cMsgConstants.h:107
@ CMSG_BAD_DOMAIN_TYPE
Definition: cMsgConstants.h:94
@ CMSG_SERVER_DIED
Definition: cMsgConstants.h:112
@ CMSG_TIMEOUT
Definition: cMsgConstants.h:90
@ CMSG_NOT_IMPLEMENTED
Definition: cMsgConstants.h:91
@ CMSG_ALREADY_EXISTS
Definition: cMsgConstants.h:95
@ CMSG_BAD_DOMAIN_ID
Definition: cMsgConstants.h:106
@ CMSG_SOCKET_ERROR
Definition: cMsgConstants.h:100
@ CMSG_OUT_OF_MEMORY
Definition: cMsgConstants.h:103
@ CMSG_ILLEGAL_MSGTYPE
Definition: cMsgConstants.h:102
@ CMSG_NETWORK_ERROR
Definition: cMsgConstants.h:99
@ CMSG_OK
Definition: cMsgConstants.h:88
@ CMSG_NOT_INITIALIZED
Definition: cMsgConstants.h:96
@ CMSG_OUT_OF_RANGE
Definition: cMsgConstants.h:104
@ CMSG_CP_STR
Definition: cMsgConstants.h:121
@ CMSG_CP_STR_A
Definition: cMsgConstants.h:135
@ CMSG_CP_UINT16
Definition: cMsgConstants.h:129
@ CMSG_CP_UINT8_A
Definition: cMsgConstants.h:142
@ CMSG_CP_INT64
Definition: cMsgConstants.h:127
@ CMSG_CP_INT16_A
Definition: cMsgConstants.h:139
@ CMSG_CP_FLT_A
Definition: cMsgConstants.h:136
@ CMSG_CP_INT8
Definition: cMsgConstants.h:124
@ CMSG_CP_DBL
Definition: cMsgConstants.h:123
@ CMSG_CP_UINT16_A
Definition: cMsgConstants.h:143
@ CMSG_CP_UINT64_A
Definition: cMsgConstants.h:145
@ CMSG_CP_DBL_A
Definition: cMsgConstants.h:137
@ CMSG_CP_UINT32_A
Definition: cMsgConstants.h:144
@ CMSG_CP_MSG
Definition: cMsgConstants.h:132
@ CMSG_CP_INT32_A
Definition: cMsgConstants.h:140
@ CMSG_CP_INT32
Definition: cMsgConstants.h:126
@ CMSG_CP_UINT32
Definition: cMsgConstants.h:130
@ CMSG_CP_BIN
Definition: cMsgConstants.h:133
@ CMSG_CP_INT8_A
Definition: cMsgConstants.h:138
@ CMSG_CP_BIN_A
Definition: cMsgConstants.h:147
@ CMSG_CP_UINT8
Definition: cMsgConstants.h:128
@ CMSG_CP_UINT64
Definition: cMsgConstants.h:131
@ CMSG_CP_MSG_A
Definition: cMsgConstants.h:146
@ CMSG_CP_INT16
Definition: cMsgConstants.h:125
@ CMSG_CP_INT64_A
Definition: cMsgConstants.h:141
@ CMSG_CP_FLT
Definition: cMsgConstants.h:122