Changeset 3045 for code/branches/netp3/src
- Timestamp:
- May 24, 2009, 11:27:14 PM (16 years ago)
- Location:
- code/branches/netp3/src/network
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/network/Client.cc
r3003 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/Client.h
r2990 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/ClientConnection.cc
r3003 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/ClientConnection.h
r2990 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/GamestateManager.cc
r2710 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/GamestateManager.h
r2662 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/Server.cc
r2990 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/Server.h
r2990 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200723 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... 26 26 * 27 27 */ 28 29 //30 // C++ Interface: Server31 //32 // Description:33 //34 //35 // Author: Oliver Scheuss, (C) 200736 //37 // Copyright: See COPYING file that comes with this distribution38 //39 //40 28 41 29 #ifndef _Server_H__ -
code/branches/netp3/src/network/packet/Gamestate.cc
r3043 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200823 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/packet/Gamestate.h
r3015 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200823 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/synchronisable/SynchronisableVariable.cc
r2991 r3045 21 21 * 22 22 * Author: 23 * Oliver Scheuss , (C) 200823 * Oliver Scheuss 24 24 * Co-authors: 25 25 * ... -
code/branches/netp3/src/network/synchronisable/SynchronisableVariable.h
r2991 r3045 81 81 virtual inline void* getReference(){ return (void *)&this->variable_; } 82 82 protected: 83 // inline bool checkEquality(uint8_t* mem);84 // inline void loadAndIncrease(uint8_t*& mem);85 // inline void saveAndIncrease(uint8_t*& mem);86 // inline uint32_t returnSize();87 83 88 84 T& variable_; … … 133 129 else 134 130 return 0; 135 // mem += SynchronisableVariable<T>::getSize();136 131 } 137 132 … … 192 187 // now write the content 193 188 saveAndIncrease( this->variable_, mem ); 194 // mem += SynchronisableVariable<T>::getSize();195 189 return SynchronisableVariableBidirectional::getSize(mode); 196 190 } … … 204 198 if ( *static_cast<uint8_t*>(mem) != this->varReference_ ) 205 199 { // wrong reference number, so discard the data 200 // COUT(0) << "discharding data" << endl; 206 201 mem += getSize( mode ); // SynchronisableVariableBidirectional::getSize returns size of variable + reference 207 202 return; … … 247 242 if ( callback ) 248 243 NetworkCallbackManager::triggerCallback( this->callback_ ); 249 //this->callback_->call();250 244 } 251 245 … … 258 252 } 259 253 260 //#include "network/synchronisable/SynchronisableVariableSpecialisations.h"261 254 262 255 #endif
Note: See TracChangeset
for help on using the changeset viewer.