Ignore:
Timestamp:
02/05/08 11:41:55 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/candrv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/ethernet.cc

    r8854 r8856  
    5353//  and switch the can bus communication on
    5454//
    55 Ethernet::Ethernet(CanOpen *rx) : MTcpIpI(5358), Interface(rx)
     55Ethernet::Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver)
     56    : MTcpIpI(rx), Interface(receiver), fTxAddress(addr), fTxPort(tx)
    5657{
    5758    gLog << inf2 << "- Ethernet initialized." << endl;
     
    191192    */
    192193
     194    // FIXME: MUST BECOME NON-BLOCKING!!!!!
    193195    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);
    199199
    200200    /*
  • trunk/MagicSoft/Cosy/candrv/ethernet.h

    r8855 r8856  
    1313{
    1414private:
     15    TString fTxAddress;
     16    Int_t   fTxPort;
     17
    1518    // Send interface based on MTcpIpI
    1619    void ReadSocket(TSocket &rx);
     
    2124
    2225public:
    23     Ethernet(CanOpen *rx);
     26    Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver);
    2427    virtual ~Ethernet();
    2528
Note: See TracChangeset for help on using the changeset viewer.