pub trait Flow {
// Required method
fn on_report(&mut self, sock_id: u32, m: Report);
// Provided method
fn close(&mut self) { ... }
}
Expand description
Implement this trait, portus::CongAlg
, and
portus::CongAlgBuilder
to define a CCP congestion control
algorithm.
CongAlg
implements functionality which applies to a given algorithm as a wholeFlow
implements functionality specific to an individual flowCongAlgBuilder
specifies how the trait that implementsCongAlg
should be built from given command-line arguments.