CARMA C++
CcNetMsgHandler.h
1 #ifndef SZA_UTIL_CCNETMSGHANDLER_H
2 #define SZA_UTIL_CCNETMSGHANDLER_H
3 
11 #include "carma/szautil/CcNetMsg.h"
14 
15 namespace sza {
16  namespace util {
17 
18  class CcNetMsg;
19 
20  class CcNetMsgHandler {
21  public:
22 
26  CcNetMsgHandler();
27 
31  virtual ~CcNetMsgHandler();
32 
36  void attachReadStream(int fd);
37 
41  void attachSendStream(int fd);
42 
47  sza::util::NetSendStr::NetSendId send();
48 
53  sza::util::NetSendStr::NetSendId
54  send(sza::util::CcNetMsg* msg);
55 
60  sza::util::NetSendStr::NetSendId send(int fd);
61 
65  sza::util::NetSendStr::NetSendId
66  send(int fd, sza::util::CcNetMsg* msg);
67 
72  sza::util::NetReadStr::NetReadId read();
73 
78  sza::util::NetReadStr::NetReadId read(int fd);
79 
83  void packCcNetMsg(sza::util::CcNetMsg* msg);
84 
88  sza::util::CcNetMsg* getCcNetMsg();
89 
90  private:
91 
92  sza::util::CcNetMsg netMsg_;
93  sza::util::NetSendStr* nss_;
94  sza::util::NetReadStr* nrs_;
95 
96  }; // End class CcNetMsgHandler
97 
98  } // End namespace util
99 } // End namespace sza
100 
101 
102 
103 #endif // End #ifndef SZA_UTIL_CCNETMSGHANDLER_H
Started: Sun Feb 29 15:29:37 UTC 2004.
Started: Sun Feb 29 15:29:37 UTC 2004.
Tagged: Mon Mar 15 15:29:07 UTC 2004.