add the periodic rate control packet sending

This commit is contained in:
Stephen Birarda 2015-07-28 15:47:36 -07:00
parent ffdd54d41f
commit 65fa4c4e6d

View file

@ -144,7 +144,10 @@ void Socket::readPendingDatagrams() {
void Socket::rateControlSync() {
// TODO: enumerate our list of connections and ask each of them to send off periodic ACK packet for rate control
// enumerate our list of connections and ask each of them to send off periodic ACK packet for rate control
for (auto& connection : _connectionsHash) {
connection.second->sendACK();
}
if (_synTimer.interval() != _synInterval) {
// if the _synTimer interval doesn't match the current _synInterval (changes when the CC factory is changed)