Line | |
---|
1 | #ifndef COSY_MTcpIpIO
|
---|
2 | #define COSY_MTcpIpIO
|
---|
3 |
|
---|
4 | #ifndef COSY_MThread
|
---|
5 | #include "MThread.h"
|
---|
6 | #endif
|
---|
7 | #ifndef COSY_Log
|
---|
8 | #include "log.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class TString;
|
---|
12 | class TSocket;
|
---|
13 | class TServerSocket;
|
---|
14 |
|
---|
15 | class MTcpIpIO : public MThread, public Log
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | TSocket *fTxSocket;
|
---|
19 | TSocket *fRxSocket;
|
---|
20 | TServerSocket *fServSock;
|
---|
21 |
|
---|
22 | void Clear();
|
---|
23 |
|
---|
24 | public:
|
---|
25 | MTcpIpIO(MLog &out=gLog);
|
---|
26 | ~MTcpIpIO();
|
---|
27 |
|
---|
28 | virtual bool Send(const char *msg);
|
---|
29 | virtual bool InterpreteStr(TString str);
|
---|
30 |
|
---|
31 | void *Thread();
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.