Ljh684/moonnet-lab/examples/embed_tcp does not have a README file

    Transfer

    pub(all) struct Transfer {
    algorithm : String
    delivered_bytes : Int
    elapsed :
    Time

    retransmits : Int
    timeouts : Int
    srtt :
    Time

    } derive(Eq,
    Debug
    )

    What one embedded run measured.

    Transfer::to_line

    fn Transfer::to_line(self : Transfer) -> String

    A report line, so the entry point stays a few lines long.

    algorithm

    fn algorithm(name : String, mss : Int) -> &
    CongestionControl

    The algorithms the library ships, by name, so a caller that has a string from a config file does not have to know the constructors.
    fn link(name : String, loss : Double) ->
    LinkSpec

    One direction of the path, in the units the library speaks.

    transfer

    fn transfer(algorithm : &
    CongestionControl
    , bytes : Int, loss : Double, seed : UInt64) -> Transfer

    Transfer bytes with the named algorithm over a path that drops loss of the packets, and report what it cost.

    Source Files