mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
window
This commit is contained in:
parent
a061f3339e
commit
f75de6af82
2 changed files with 12 additions and 98 deletions
|
@ -44,6 +44,7 @@ namespace stream
|
|||
const int RESEND_TIMEOUT = 10; // in seconds
|
||||
const int ACK_SEND_TIMEOUT = 200; // in milliseconds
|
||||
const int MAX_NUM_RESEND_ATTEMPTS = 5;
|
||||
const int WINDOW_SIZE = 6; // in messages
|
||||
|
||||
struct Packet
|
||||
{
|
||||
|
@ -117,7 +118,6 @@ namespace stream
|
|||
void SendBuffer ();
|
||||
void SendQuickAck ();
|
||||
bool SendPacket (Packet * packet);
|
||||
void PostPackets (const std::vector<Packet *> packets);
|
||||
void SendPackets (const std::vector<Packet *>& packets);
|
||||
|
||||
void SavePacket (Packet * packet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue