My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
CcNetMsg.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_CCNETMSG_H
2 #define GCP_UTIL_CCNETMSG_H
3 
11 #include "gcp/util/common/Debug.h"
12 #include "gcp/util/common/Exception.h"
13 #include "gcp/util/common/LogStream.h"
14 #include "gcp/util/common/NetSendStr.h"
15 
16 #include "gcp/control/code/unix/libunix_src/common/netobj.h"
17 #include "gcp/control/code/unix/libunix_src/common/control.h"
18 
19 namespace gcp {
20  namespace util {
21 
22  class CcNetMsg {
23  public:
24 
28  enum MsgType {
29  LOG = gcp::control::CC_LOG_MSG, // A message to be logged
30  REPLY = gcp::control::CC_REPLY_MSG, // A reply to a CC_INPUT_CMD
31  SCHED = gcp::control::CC_SCHED_MSG, // A message from the scheduler
32  ARC = gcp::control::CC_ARC_MSG, // A message from the archiver
33  PAGE = gcp::control::CC_PAGE_MSG, // A message regarding the pager
34  };
35 
40 
45 
46  //------------------------------------------------------------
47  // Methods to pack Network messages
48  //------------------------------------------------------------
49 
50  }; // End class CcNetMsg
51 
52  } // End namespace util
53 } // End namespace gcp
54 
55 
56 
57 
58 #endif // End #ifndef GCP_UTIL_CCNETMSG_H
Definition: control.h:230
Definition: CcNetMsg.h:22
MsgType type
Definition: CcNetMsg.h:39
MsgType
Definition: CcNetMsg.h:28
gcp::control::CcNetMsg body
Definition: CcNetMsg.h:44