Changeset 3794f6d in network-game
- Timestamp:
- Jul 17, 2013, 2:00:08 AM (11 years ago)
- Branches:
- master
- Children:
- cc6a14a
- Parents:
- 855f153
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.cpp
r855f153 r3794f6d 63 63 64 64 sendto(sock, (char*)&ack, sizeof(NETWORK_MSG), 0, (struct sockaddr *)source, sizeof(struct sockaddr_in)); 65 }else 65 }else { 66 66 cout << "Got duplicate ack" << endl; 67 return -1; 68 } 67 69 } 68 70 … … 100 102 101 103 while (it2 != ackedMessages.end()) { 102 if ((getCurrentMillis() - it2->second) > 500 0) {104 if ((getCurrentMillis() - it2->second) > 500) { 103 105 ackedMessages.erase(it2++); 104 106 cout << "Deleting ack record" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.