onCongestionWindowUpdate abstract method

void onCongestionWindowUpdate(
  1. ConnectionId cid,
  2. int oldCwnd,
  3. int newCwnd,
  4. String reason,
)

Called when the congestion window is updated.

cid is the connection ID. oldCwnd is the previous congestion window size. newCwnd is the new congestion window size. reason describes why the window changed (e.g., "ack", "loss", "timeout").

Implementation

void onCongestionWindowUpdate(ConnectionId cid, int oldCwnd, int newCwnd, String reason);