Ignore:
Timestamp:
02/20/08 19:39:13 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8864 r8865  
    9090        const Int_t len = rx.RecvRaw(&c, 1);
    9191
    92         // No data received (non-blocking mode)
    93         if (len<0)
    94         {
    95             usleep(1);
    96             continue;
    97         }
    98 
    99         // Data received with zero length! (Connection lost)
    100         if (len==0)
     92        // For details see TSocket::RecvRaw
     93        // -1: // ERROR
     94        // EINVAL, EWOULDBLOCK
     95        // -5: // EPIPE || ECONNRESET = Pipe broken or connection reset by peer
     96        //  0: Data received with zero length! (Connection lost/call interrupted)
     97        if (len<=0)
    10198            return kFALSE;
    10299
     
    112109            if (c>=MSGLEN)
    113110            {
    114                 cout << "Data received from " << address << " too long (> " << MSGLEN << ")" << endl;
     111                gLog << err << "Data received from " << address << " too long (> " << MSGLEN << ")" << endl;
    115112                continue;
    116113            }
Note: See TracChangeset for help on using the changeset viewer.