Module rudp::resend_predicates[][src]

Provided some example functions that can be passed as the resend_predicate of a customized EndpointConfig. Feel free to use your own functions.

Functions

medium_combination

resend iff: age < 1.0 sec OR age_millis + (id_difference*8) >= 1000

twenty_ids

Resend iff at least twenty newer-id payloads have been sent in the meantime without it being acknowledged by the peer.

two_hundred_millis

Resend iff at least 200 milliseconds have elapsed without the message being acknowledged by the peer.