send batch of I2NP messages

This commit is contained in:
orignal 2015-01-20 21:05:57 -05:00
parent 74c89ce06e
commit ea353ac3ba
8 changed files with 71 additions and 6 deletions

View file

@ -188,9 +188,9 @@ namespace tunnel
{
m_Tunnel->EncryptTunnelMsg (tunnelMsg);
FillI2NPMessageHeader (tunnelMsg, eI2NPTunnelData);
i2p::transport::transports.SendMessage (m_Tunnel->GetNextIdentHash (), tunnelMsg);
m_NumSentBytes += TUNNEL_DATA_MSG_SIZE;
}
i2p::transport::transports.SendMessages (m_Tunnel->GetNextIdentHash (), tunnelMsgs);
m_Buffer.ClearTunnelDataMsgs ();
}
}