onRttSample abstract method

void onRttSample(
  1. ConnectionId cid,
  2. Duration rtt,
  3. Duration smoothedRtt,
  4. Duration rttVar,
)

Called when a new RTT sample is calculated.

cid is the connection ID. rtt is the raw RTT sample. smoothedRtt is the smoothed RTT (SRTT). rttVar is the RTT variance.

Implementation

void onRttSample(ConnectionId cid, Duration rtt, Duration smoothedRtt, Duration rttVar);