Changeset 8856 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 02/05/08 11:41:55 (17 years ago)
- Location:
- trunk/MagicSoft/Cosy/candrv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/ethernet.cc
r8854 r8856 53 53 // and switch the can bus communication on 54 54 // 55 Ethernet::Ethernet(CanOpen *rx) : MTcpIpI(5358), Interface(rx) 55 Ethernet::Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver) 56 : MTcpIpI(rx), Interface(receiver), fTxAddress(addr), fTxPort(tx) 56 57 { 57 58 gLog << inf2 << "- Ethernet initialized." << endl; … … 191 192 */ 192 193 194 // FIXME: MUST BECOME NON-BLOCKING!!!!! 193 195 cout << "*** Send CanFrame over IP" << endl; 194 195 // MUST BECOME NON-BLOCKING!!!!! 196 197 // MTcpIpO::SendFrame("192.168.0.2", 5357, (char*)(msg.data+1), msg.len-1); 198 MTcpIpO::SendFrame("192.168.1.1", 5357, (char*)(msg.data+1), msg.len-1); 196 // FIXME: MUST BECOME NON-BLOCKING!!!!! 197 198 MTcpIpO::SendFrame(fTxAddress, fTxPort, (char*)(msg.data+1), msg.len-1); 199 199 200 200 /* -
trunk/MagicSoft/Cosy/candrv/ethernet.h
r8855 r8856 13 13 { 14 14 private: 15 TString fTxAddress; 16 Int_t fTxPort; 17 15 18 // Send interface based on MTcpIpI 16 19 void ReadSocket(TSocket &rx); … … 21 24 22 25 public: 23 Ethernet( CanOpen *rx);26 Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver); 24 27 virtual ~Ethernet(); 25 28
Note:
See TracChangeset
for help on using the changeset viewer.