Changeset 6394 for code/branches/presentation2/src/libraries/network
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/network
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/network/Client.cc
r6387 r6394 139 139 { 140 140 timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD; 141 // COUT(3) << ".";141 // COUT(3) << '.'; 142 142 if ( isConnected() && isSynched_ ) 143 143 { -
code/branches/presentation2/src/libraries/network/GamestateClient.cc
r6387 r6394 137 137 COUT(4) << "gamestates: "; 138 138 for(it=gamestateMap_.begin(); it!=gamestateMap_.end(); it++){ 139 COUT(4) << it->first << ":" << it->second << "|";139 COUT(4) << it->first << ':' << it->second << '|'; 140 140 } 141 141 COUT(4) << std::endl; -
code/branches/presentation2/src/libraries/network/packet/ClassID.cc
r5929 r6394 48 48 ClassID::ClassID( ) : Packet(){ 49 49 Identifier *id; 50 std::string classname;51 50 unsigned int nrOfClasses=0; 52 51 unsigned int packetSize=2*sizeof(uint32_t); //space for the packetID and for the nrofclasses … … 61 60 if(id == NULL || !id->hasFactory()) 62 61 continue; 63 c lassname = id->getName();62 const std::string& classname = id->getName(); 64 63 network_id = id->getNetworkID(); 65 64 // now push the network id and the classname to the stack -
code/branches/presentation2/src/libraries/network/packet/DeleteObjects.cc
r6387 r6394 72 72 unsigned int temp = Synchronisable::popDeletedObject(); 73 73 *reinterpret_cast<uint32_t*>(tdata) = temp; 74 COUT(4) << temp << " ";74 COUT(4) << temp << ' '; 75 75 tdata += sizeof(uint32_t); 76 76 } -
code/branches/presentation2/src/libraries/network/packet/FunctionIDs.cc
r6388 r6394 47 47 48 48 FunctionIDs::FunctionIDs( ) : Packet(){ 49 std::string functionname;50 49 unsigned int nrOfFunctions=0; 51 50 unsigned int packetSize=2*sizeof(uint32_t); //space for the packetID and for the nroffunctions … … 57 56 ObjectList<NetworkFunctionBase>::iterator it; 58 57 for(it = ObjectList<NetworkFunctionBase>::begin(); it; ++it){ 59 functionname = it->getName();58 const std::string& functionname = it->getName(); 60 59 networkID = it->getNetworkID(); 61 60 // now push the network id and the classname to the stack -
code/branches/presentation2/src/libraries/network/packet/Gamestate.cc
r6388 r6394 529 529 // COUT(0) << "myvector contains:"; 530 530 // for ( itt=dataVector_.begin() ; itt!=dataVector_.end(); itt++ ) 531 // COUT(0) << " "<< (*itt).objID;531 // COUT(0) << ' ' << (*itt).objID; 532 532 // COUT(0) << endl; 533 533 for(it=dataVector_.begin(); it!=dataVector_.end();){
Note: See TracChangeset
for help on using the changeset viewer.