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.
CongAlgimplements functionality which applies to a given algorithm as a wholeFlowimplements functionality specific to an individual flowCongAlgBuilderspecifies how the trait that implementsCongAlgshould be built from given command-line arguments.