Package net.i2p.util

Interface BandwidthEstimator

    • Method Detail

      • addSample

        void addSample​(int acked)
        Records an arriving ack.
        Parameters:
        acked - how many bytes or packets were acked with this ack
      • getBandwidthEstimate

        float getBandwidthEstimate()
        Returns:
        the current bandwidth estimate in bytes/ms or packets/ms.