Changeset 2514 for trunk/MagicSoft/Cosy/tcpip
- Timestamp:
- 11/14/03 14:07:13 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/tcpip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r2384 r2514 65 65 cout << "Hum: " << hum << "%" << endl; 66 66 67 fHumidity = hum; 68 fTemperature = temp; 69 67 70 fComStat = kCmdReceived; 68 71 return true; -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.h
r2384 r2514 31 31 ComStatus_t fComStat; // communication status 32 32 33 Float_t fHumidity; // [%] 34 Float_t fTemperature; // degrees celsius 35 33 36 virtual bool InterpreteCmd(TString cmd, TString str); 34 37 … … 43 46 bool Send(const char *str); 44 47 void SetStatus(Byte_t s) { fStatus=s; } 48 49 Float_t GetHumidity() const { return fHumidity; } 50 Float_t GetTemperature() const { return fTemperature; } 45 51 }; 46 52 -
trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
r2384 r2514 6 6 #include <TSocket.h> 7 7 #include <TServerSocket.h> 8 9 #undef DEBUG 8 10 9 11 using namespace std; … … 71 73 return false; 72 74 } 73 75 #ifdef DEBUG 74 76 cout << "Tx: " << msg << flush; 75 77 #endif 76 78 return true; 77 79 }
Note:
See TracChangeset
for help on using the changeset viewer.