Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1011


Ignore:
Timestamp:
Apr 10, 2008, 1:37:47 PM (17 years ago)
Author:
dumenim
Message:

print gamestates on cout(4)

Location:
code/branches/network/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/ClientConnection.cc

    r891 r1011  
    160160      case ENET_EVENT_TYPE_CONNECT:
    161161      case ENET_EVENT_TYPE_RECEIVE:
    162         COUT(5) << "receiver-Thread: got new packet" << std::endl;
     162        COUT(5) << "Cl.Con: receiver-Thread: got new packet" << std::endl;
    163163        processData(&event);
    164164        break;
     
    216216
    217217  bool ClientConnection::processData(ENetEvent *event) {
    218     COUT(5) << "got packet, pushing to queue" << std::endl;
     218    COUT(5) << "Cl.Con: got packet, pushing to queue" << std::endl;
    219219    // just add packet to the buffer
    220220    // this can be extended with some preprocessing
  • code/branches/network/src/network/GameStateManager.cc

    r1008 r1011  
    277277    compressedGamestate->diffed = a->diffed;
    278278    compressedGamestate->base_id = a->base_id;
    279     COUT(5) << "G.St.Man: saved compressed data in GameStateCompressed" << std::endl;
     279    COUT(5) << "G.St.Man: saved compressed data in GameStateCompressed:" << std::endl;
     280    COUT(4) << "G.St.Man: compressedGamestate: id: " << compressedGamestate->id << " base_id: " << compressedGamestate->base_id << " normsize: " << compressedGamestate->normsize << " compsize: " << compressedGamestate->compsize << " diffed: " << compressedGamestate->diffed << std::endl;
    280281    return compressedGamestate;
    281282  }
Note: See TracChangeset for help on using the changeset viewer.