Ignore:
Timestamp:
02/21/08 22:03:06 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc

    r8865 r8869  
    217217            if (!ReadSocket(sock))
    218218            {
    219                 gLog << warn << "WARNING - Connection lost to " << MTcpIpO::GetSocketAddress(sock) << endl;
     219                gLog << warn << MTime(-1) << " WARNING - Connection lost to " << MTcpIpO::GetSocketAddress(sock) << endl;
    220220                return kFALSE;
    221221            }
     
    228228            if (timeout.HasTimedOut())
    229229            {
    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;
    231231                return kFALSE;
    232232            }
     
    245245void MTcpIpI::WaitForConnection(TServerSocket &server)
    246246{
    247     gLog << all << " Wait for connection" << endl;
    248 
    249247    while (!IsThreadCanceled())
    250248    {
    251         gLog << all << "Listening for new connection on port " << fPortRx << "..." << endl;
     249        gLog << all << MTime(-1) << " Listening for new connection on port " << fPortRx << "..." << endl;
    252250
    253251        // Check for a connection request (reminder: we are in non-blocking mode)
     
    256254        while (!IsThreadCanceled())
    257255        {
     256            //cout << (int) IsThreadCanceled() << endl;
    258257            // Wait for a new connection on RX port
    259258            socket = server.Accept();
     
    281280            return;
    282281
    283         gLog << all << "Connection established to " << MTcpIpO::GetSocketAddress(*socket) << "..." << endl;
     282        gLog << all << MTime(-1) << " Connection established to " << MTcpIpO::GetSocketAddress(*socket) << "..." << endl;
    284283
    285284        if (!WaitForData(*socket))
     
    296295    while (!IsThreadCanceled())
    297296    {
    298         TServerSocket *server=new TServerSocket(fPortRx, kTRUE);
     297        TServerSocket *server=new TServerSocket(fPortRx, kTRUE, 0);
    299298        server->SetOption(kNoBlock, 1);
    300299
Note: See TracChangeset for help on using the changeset viewer.