Changeset f9cb9fb in network-game for common/MessageProcessor.h


Ignore:
Timestamp:
Aug 3, 2013, 12:52:15 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
753fa8a
Parents:
8271c78
Message:

The ackedMessages list in MessageProcessor now stores ack records based on sender address and message id so that messages with the same id, but from different senders are distinguishable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/MessageProcessor.h

    r8271c78 rf9cb9fb  
    1515   map<unsigned int, map<unsigned long, MessageContainer> > sentMessages;
    1616
    17    // map from message ids to the time each mesage was acked
    18    map<unsigned int, MessageContainer> ackedMessages;
     17   // map from player address to map from message id to time accked
     18   map<unsigned long, map<unsigned int, unsigned long long> > ackedMessages;
    1919
    2020   unsigned long pid;
     
    3030
    3131   map<unsigned int, map<unsigned long, MessageContainer> >& getSentMessages();
    32    map<unsigned int, MessageContainer>& getAckedMessages();
     32   map<unsigned long, map<unsigned int, unsigned long long> >& getAckedMessages();
    3333};
    3434
Note: See TracChangeset for help on using the changeset viewer.