Changeset 8869 for trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
- Timestamp:
- 02/21/08 22:03:06 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
r8865 r8869 217 217 if (!ReadSocket(sock)) 218 218 { 219 gLog << warn << "WARNING - Connection lost to " << MTcpIpO::GetSocketAddress(sock) << endl;219 gLog << warn << MTime(-1) << " WARNING - Connection lost to " << MTcpIpO::GetSocketAddress(sock) << endl; 220 220 return kFALSE; 221 221 } … … 228 228 if (timeout.HasTimedOut()) 229 229 { 230 gLog << warn << "WARNING - Connection to " << MTcpIpO::GetSocketAddress(sock) << " timed out." << endl;230 gLog << warn << MTime(-1) << " WARNING - Connection to " << MTcpIpO::GetSocketAddress(sock) << " timed out." << endl; 231 231 return kFALSE; 232 232 } … … 245 245 void MTcpIpI::WaitForConnection(TServerSocket &server) 246 246 { 247 gLog << all << " Wait for connection" << endl;248 249 247 while (!IsThreadCanceled()) 250 248 { 251 gLog << all << "Listening for new connection on port " << fPortRx << "..." << endl;249 gLog << all << MTime(-1) << " Listening for new connection on port " << fPortRx << "..." << endl; 252 250 253 251 // Check for a connection request (reminder: we are in non-blocking mode) … … 256 254 while (!IsThreadCanceled()) 257 255 { 256 //cout << (int) IsThreadCanceled() << endl; 258 257 // Wait for a new connection on RX port 259 258 socket = server.Accept(); … … 281 280 return; 282 281 283 gLog << all << "Connection established to " << MTcpIpO::GetSocketAddress(*socket) << "..." << endl;282 gLog << all << MTime(-1) << " Connection established to " << MTcpIpO::GetSocketAddress(*socket) << "..." << endl; 284 283 285 284 if (!WaitForData(*socket)) … … 296 295 while (!IsThreadCanceled()) 297 296 { 298 TServerSocket *server=new TServerSocket(fPortRx, kTRUE );297 TServerSocket *server=new TServerSocket(fPortRx, kTRUE, 0); 299 298 server->SetOption(kNoBlock, 1); 300 299
Note:
See TracChangeset
for help on using the changeset viewer.