Changeset 8865 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 02/20/08 19:39:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/ethernet.cc
r8864 r8865 90 90 const Int_t len = rx.RecvRaw(&c, 1); 91 91 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) 101 98 return kFALSE; 102 99 … … 112 109 if (c>=MSGLEN) 113 110 { 114 cout<< "Data received from " << address << " too long (> " << MSGLEN << ")" << endl;111 gLog << err << "Data received from " << address << " too long (> " << MSGLEN << ")" << endl; 115 112 continue; 116 113 }
Note:
See TracChangeset
for help on using the changeset viewer.