pub trait Flow {
    fn on_report(&mut self, sock_id: u32, m: Report);

    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 whole
  • Flow implements functionality specific to an individual flow
  • CongAlgBuilder specifies how the trait that implements CongAlg should be built from given command-line arguments.

Required methods

This callback specifies the algorithm’s behavior when it receives a report of measurements from the datapath.

Provided methods

Optionally specify what the algorithm should do when the flow ends, e.g., clean up any external resources. The default implementation does nothing.

Implementations on Foreign Types

Implementors