Class ServerClientDetection

java.lang.Object
org.red5.server.stream.bandwidth.ServerClientDetection
All Implemented Interfaces:
IPendingServiceCallback, IBandwidthDetection

public class ServerClientDetection extends Object implements IPendingServiceCallback, IBandwidthDetection
Calculates the bandwidth between the client and server. The checks originate from the server.
Author:
The Red5 Project, Dan Rossi, Paul Gregoire
See Also:
  • Field Details

    • log

      private static org.slf4j.Logger log
    • LATENCY_MAX

      private static final double LATENCY_MAX
      See Also:
    • LATENCY_MIN

      private static final double LATENCY_MIN
      See Also:
    • conn

      private IConnection conn
    • latency

      private volatile double latency
    • cumLatency

      private volatile double cumLatency
    • kbitDown

      private double kbitDown
    • deltaDown

      private double deltaDown
    • deltaTime

      private double deltaTime
    • startBytesWritten

      private long startBytesWritten
    • startTime

      private long startTime
    • timePassed

      private long timePassed
    • packetsSent

      private AtomicInteger packetsSent
    • packetsReceived

      private AtomicInteger packetsReceived
    • payload

      private byte[] payload
    • payload1

      private byte[] payload1
  • Constructor Details

    • ServerClientDetection

      public ServerClientDetection()
  • Method Details