Changeset 2945 for code/branches/netp2/src
- Timestamp:
- May 1, 2009, 3:16:12 PM (16 years ago)
- Location:
- code/branches/netp2/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp2/src/network/FunctionCallManager.cc
r2944 r2945 35 35 36 36 void FunctionCallManager::addCallStatic(uint32_t functionID, uint32_t clientID, MultiType* mt1, MultiType* mt2, MultiType* mt3, MultiType* mt4, MultiType* mt5) 37 { 37 { 38 38 if(clientMap_.find(clientID)==clientMap_.end()) 39 39 { 40 clientMap_[clientID] = new packet::FunctionCalls;41 clientMap_[clientID]->setClientID(clientID);40 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 41 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 42 42 } 43 clientMap_[clientID]->addCallStatic(functionID, mt1, mt2, mt3, mt4, mt5);43 FunctionCallManager:: clientMap_[clientID]->addCallStatic(functionID, mt1, mt2, mt3, mt4, mt5); 44 44 } 45 45 … … 48 48 if(clientMap_.find(clientID)==clientMap_.end()) 49 49 { 50 clientMap_[clientID] = new packet::FunctionCalls;51 clientMap_[clientID]->setClientID(clientID);50 FunctionCallManager::clientMap_[clientID] = new packet::FunctionCalls; 51 FunctionCallManager::clientMap_[clientID]->setClientID(clientID); 52 52 } 53 clientMap_[clientID]->addCallMember(functionID, objectID, mt1, mt2, mt3, mt4, mt5);53 FunctionCallManager::clientMap_[clientID]->addCallMember(functionID, objectID, mt1, mt2, mt3, mt4, mt5); 54 54 } 55 55 … … 57 57 { 58 58 std::map<uint32_t, packet::FunctionCalls*>::iterator it; 59 for (it = FunctionCallManager::clientMap_.begin(); it != FunctionCallManager::clientMap_.end(); )59 for (it = FunctionCallManager::clientMap_.begin(); it != FunctionCallManager::clientMap_.end(); it++ ) 60 60 { 61 assert(!FunctionCallManager::clientMap_.empty()); 61 62 it->second->send(); 62 clientMap_.erase(it++);63 63 } 64 FunctionCallManager::clientMap_.clear(); 64 65 } 65 66 -
code/branches/netp2/src/network/packet/FunctionCalls.cc
r2944 r2945 52 52 data_=new uint8_t[ FUNCTIONCALLS_MEM_ALLOCATION ]; 53 53 *(ENUM::Type *)(data_ + _PACKETID ) = ENUM::FunctionCalls; 54 *(uint32_t*)(data_+sizeof(uint32_t)) = 0; // set nrOfCalls to 0 54 55 } 55 56
Note: See TracChangeset
for help on using the changeset viewer.