1 #ifndef SZA_UTIL_NETCOMMHANDLER_H
2 #define SZA_UTIL_NETCOMMHANDLER_H
18 class NetCommHandler {
29 virtual ~NetCommHandler();
34 void attachReadStream(
int fd);
39 void attachSendStream(
int fd);
49 void packNetMsg(NetMsg* msg);
54 void packNetCmd(NetCmd* cmd);
59 void packRtcNetCmd(sza::array::RtcNetCmd* cmd,
60 sza::array::NetCmdId opcode);
65 sza::util::NetReadStr::NetReadId readNetMsg();
70 sza::util::NetSendStr::NetSendId sendNetMsg();
75 sza::util::NetReadStr::NetReadId readNetCmd();
80 sza::util::NetSendStr::NetSendId sendNetCmd();
85 sza::util::NetCmd* getLastReadNetCmd();
90 sza::util::NetCmd* getLastSentNetCmd();
95 sza::util::NetMsg* getLastReadNetMsg();
100 sza::util::NetMsg* getLastSentNetMsg();
120 NetMsgHandler* getNetMsgHandler();
125 NetCmdHandler* getNetCmdHandler();
131 return antNum_.getId();
134 inline unsigned getIntId() {
135 return antNum_.getIntId();
150 NetMsgHandler netMsgHandler_;
151 NetCmdHandler netCmdHandler_;
160 #endif // End #ifndef SZA_UTIL_NETCOMMHANDLER_H
Tagged: Mon Mar 15 18:24:26 UTC 2004.
Started: Thu Feb 26 16:21:06 UTC 2004.
Tagged: Fri Nov 14 12:39:31 UTC 2003.
Id
Enumerate known receivers.