Changeset 8646 in orxonox.OLD for branches/network
- Timestamp:
- Jun 20, 2006, 6:52:56 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/message_manager.cc
r8643 r8646 197 197 msg.number = userId; 198 198 199 incomingMessa beBuffer.push_back( msg );199 incomingMessageBuffer.push_back( msg ); 200 200 } 201 201 messageQueue[userId].recievedMessages.push_back( number ); … … 205 205 206 206 207 for ( std::list<NetworkMessage>::iterator it = incomingMessabeBuffer.begin(); it != incomingMessabeBuffer.end(); ) 207 //TODO maybe handle incomingMessage in tick function. else local messages will not be handled if no clients are connected 208 for ( std::list<NetworkMessage>::iterator it = incomingMessageBuffer.begin(); it != incomingMessageBuffer.end(); ) 208 209 { 209 210 if ( (*(messageHandlerMap[it->messageId].cb))( it->messageId, it->data, it->length, messageHandlerMap[it->messageId].someData, it->number ) ) … … 213 214 delete it->data; 214 215 it++; 215 incomingMessa beBuffer.erase( delIt );216 incomingMessageBuffer.erase( delIt ); 216 217 continue; 217 218 } … … 343 344 msg.priority = messagePriority; 344 345 345 incomingMessa beBuffer.push_back( msg );346 } 347 } 348 349 346 incomingMessageBuffer.push_back( msg ); 347 } 348 } 349 350 -
branches/network/src/lib/network/message_manager.h
r8623 r8646 109 109 110 110 int newNumber; //!< used to create unique message numbers 111 std::list<NetworkMessage> incomingMessa beBuffer;111 std::list<NetworkMessage> incomingMessageBuffer; 112 112 113 113 }; -
branches/network/src/lib/network/network_manager.cc
r8228 r8646 144 144 this->elapsedTime = 0.0f; 145 145 146 if ( networkStream->isActive() )146 // if ( networkStream->isActive() ) 147 147 networkStream->processData(); 148 148
Note: See TracChangeset
for help on using the changeset viewer.