Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8646 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 20, 2006, 6:52:56 PM (18 years ago)
Author:
rennerc
Message:

TODO++
spelling

Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/message_manager.cc

    r8643 r8646  
    197197        msg.number = userId;
    198198       
    199         incomingMessabeBuffer.push_back( msg );
     199        incomingMessageBuffer.push_back( msg );
    200200      }
    201201      messageQueue[userId].recievedMessages.push_back( number );
     
    205205 
    206206 
    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();  )
    208209  {
    209210    if ( (*(messageHandlerMap[it->messageId].cb))( it->messageId, it->data, it->length, messageHandlerMap[it->messageId].someData, it->number ) )
     
    213214        delete it->data;
    214215      it++;
    215       incomingMessabeBuffer.erase( delIt );
     216      incomingMessageBuffer.erase( delIt );
    216217      continue;
    217218    }
     
    343344    msg.priority = messagePriority;
    344345
    345     incomingMessabeBuffer.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  
    109109
    110110   int                       newNumber;              //!< used to create unique message numbers
    111    std::list<NetworkMessage> incomingMessabeBuffer;
     111   std::list<NetworkMessage> incomingMessageBuffer;
    112112
    113113};
  • branches/network/src/lib/network/network_manager.cc

    r8228 r8646  
    144144  this->elapsedTime = 0.0f;
    145145
    146   if ( networkStream->isActive() )
     146//  if ( networkStream->isActive() )
    147147    networkStream->processData();
    148148 
Note: See TracChangeset for help on using the changeset viewer.