void ackReceived(int receiveAckId, int startTime, int currentTime)

Source

void ackReceived(int receiveAckId, int startTime, int currentTime) {
  if (receiveAckId == _lastWatingAckId) {
    _waitingAckCount = 0;
  } else {
    _waitingAckCount--;
  }

  if (_sendingAfterAck) {
    _sendingAfterAck = false;
    prepareSending();
  }
}