window size

This commit is contained in:
orignal 2022-04-18 13:14:09 -04:00
parent 98e713166b
commit 6990f177ba
2 changed files with 10 additions and 4 deletions

View file

@ -33,6 +33,7 @@ namespace transport
const int SSU2_RESEND_INTERVAL = 3; // in seconds
const int SSU2_MAX_NUM_RESENDS = 5;
const int SSU2_INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT = 30; // in seconds
const size_t SSU2_MAX_WINDOW_SIZE = 128; // in packets
enum SSU2MessageType
{
@ -210,6 +211,7 @@ namespace transport
std::list<std::shared_ptr<I2NPMessage> > m_SendQueue;
i2p::I2NPMessagesHandler m_Handler;
bool m_IsDataReceived;
size_t m_WindowSize;
};
class SSU2Server: private i2p::util::RunnableServiceWithWork