Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7752 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
May 21, 2006, 4:36:46 PM (18 years ago)
Author:
rennerc
Message:

NetworkStream should not flood stdout anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_stream.cc

    r7748 r7752  
    425425    assert( peer->second.socket->writePacket( buf, offset ) );
    426426    peer->second.sentStateTicks[currentState] = SDL_GetTicks();
    427     PRINTF(0)("send packet: %d userId = %d\n", offset, peer->second.userId);
     427    NETPRINTF(n)("send packet: %d userId = %d\n", offset, peer->second.userId);
    428428  }
    429429}
     
    465465      assert( Converter::byteArrayToInt( buf + 2*INTSIZE, &fromState ) == INTSIZE );
    466466      assert( Converter::byteArrayToInt( buf + 3*INTSIZE, &ackedState ) == INTSIZE );
    467       PRINTF(0)("ackedstate: %d\n", ackedState);
     467      NETPRINTF(n)("ackedstate: %d\n", ackedState);
    468468      offset = 4*INTSIZE;
    469469
    470       PRINTF(0)("got packet: %d, %d\n", length, packetLength);
     470      NETPRINTF(n)("got packet: %d, %d\n", length, packetLength);
    471471   
    472472    //if this is an old state drop it
     
    585585        peer->second.ping /= peer->second.ackDelay.size();
    586586     
    587       NETPRINTF(0)("PING: user: %d ping: %d\n", peer->second.userId, peer->second.ping );
     587      NETPRINTF(n)("PING: user: %d ping: %d\n", peer->second.userId, peer->second.ping );
    588588   
    589589      peer->second.lastAckedState = ackedState;
Note: See TracChangeset for help on using the changeset viewer.