sosistab 0.5.43

An obfuscated datagram transport for horrible networks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod cubic;
mod hstcp;
mod trivial;
pub use cubic::*;
pub use hstcp::*;
pub use trivial::*;

pub trait CongestionControl {
    /// Gets the current CWND
    fn cwnd(&self) -> usize;

    /// React to an incoming acknowledgement of a single packet
    fn mark_ack(&mut self, current_bdp: usize, current_ping: usize);

    /// React to a loss event
    fn mark_loss(&mut self);
}