Changeset 68d94de in network-game for common/MessageProcessor.h
- Timestamp:
- Dec 24, 2013, 3:02:22 PM (11 years ago)
- Branches:
- master
- Children:
- 8554263
- Parents:
- e1af80c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/MessageProcessor.h
re1af80c r68d94de 10 10 class MessageProcessor { 11 11 private: 12 int sock; 13 ofstream* outputLog; 12 14 int lastUsedId; 13 15 … … 18 20 map<unsigned long, map<unsigned int, unsigned long long> > ackedMessages; 19 21 20 unsigned long pid;22 //unsigned long pid; 21 23 22 24 public: 23 25 MessageProcessor(); 26 MessageProcessor(int sock, ofstream* outputLog = NULL); 24 27 ~MessageProcessor(); 25 28 26 int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest, ofstream* outputLog = NULL);27 int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest, ofstream* outputLog = NULL);28 void resendUnackedMessages( int sock, ofstream* outputLog = NULL);29 void cleanAckedMessages( ofstream* outputLog = NULL);29 int sendMessage(NETWORK_MSG *msg, struct sockaddr_in *dest); 30 int receiveMessage(NETWORK_MSG *msg, struct sockaddr_in *source); 31 void resendUnackedMessages(); 32 void cleanAckedMessages(); 30 33 31 34 map<unsigned int, map<unsigned long, MessageContainer> >& getSentMessages();
Note:
See TracChangeset
for help on using the changeset viewer.