mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
store sent messages until ack-ed
This commit is contained in:
parent
d5fff57edb
commit
fccb13cedd
2 changed files with 32 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <inttypes.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "I2NPProtocol.h"
|
||||
|
||||
namespace i2p
|
||||
|
@ -32,6 +33,7 @@ namespace ssu
|
|||
private:
|
||||
|
||||
void SendMsgAck (uint32_t msgID);
|
||||
void ProcessSentMessageAck (uint32_t msgID);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -45,6 +47,7 @@ namespace ssu
|
|||
|
||||
SSUSession& m_Session;
|
||||
std::map<uint32_t, IncompleteMessage *> m_IncomleteMessages;
|
||||
std::map<uint32_t, std::vector<uint8_t *> > m_SentMessages; // msgID -> fragments
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue