Changeset 12598 for trunk/Cosy/tcpip/MTcpIpIO.h
- Timestamp:
- 11/21/11 13:08:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosy/tcpip/MTcpIpIO.h
r10031 r12598 20 20 class MTcpIpI : public MThread 21 21 { 22 protected: 23 TSocket *fRxSocket; 24 TMutex fRxMutex; 25 22 26 private: 23 27 Int_t fPortRx; // Port on which to listen for connections … … 36 40 37 41 public: 38 MTcpIpI(Int_t rx, UInt_t timeout=5000) : MThread(Form("MTcpIpI::%d", rx)), f PortRx(rx), fTimeout(timeout), fConnectionEstablished(kFALSE) { /*RunThread();*/ }42 MTcpIpI(Int_t rx, UInt_t timeout=5000) : MThread(Form("MTcpIpI::%d", rx)), fRxSocket(0), fPortRx(rx), fTimeout(timeout), fConnectionEstablished(kFALSE) { /*RunThread();*/ } 39 43 ~MTcpIpI() { CancelThread(); } 40 44 … … 65 69 }; 66 70 67 // This class es espcially meant to receive and send ascii messages 68 class MTcpIpIO : public MTcpIpI, public MTcpIpO 71 class MTcpIpCC : public MTcpIpI 69 72 { 70 73 private: … … 72 75 73 76 public: 74 MTcpIp IO(const char *addr, Int_t tx,Int_t rx, UInt_t timeout=5000);77 MTcpIpCC(Int_t rx, UInt_t timeout=5000); 75 78 76 79 virtual bool InterpreteStr(TString str); 80 }; 81 82 // This class es espcially meant to receive and send ascii messages 83 class MTcpIpIO : public MTcpIpCC, public MTcpIpO 84 { 85 86 public: 87 MTcpIpIO(const char *addr, Int_t tx, Int_t rx, UInt_t timeout=5000); 77 88 }; 78 89 … … 91 102 }; 92 103 104 class MTcpIpFact : public MTcpIpCC 105 { 106 private: 107 108 public: 109 MTcpIpFact(const char *dumm1, Int_t dummy2, Int_t rx, UInt_t timeout) : MTcpIpCC(rx, timeout) 110 { 111 } 112 113 bool Send(const char *msg, int len); 114 }; 115 116 93 117 #endif
Note:
See TracChangeset
for help on using the changeset viewer.