shouldRetransmit

fnbool shouldRetransmit(const(DtlsFlight) * flight, MonotonicTime now) @safe pure nothrow @nogc

Check if a flight needs retransmission.

A flight should be retransmitted if the time since it was last sent exceeds the computed retransmission timeout based on the current retry count.

Parameters

flightPointer to the flight to check.
nowThe current monotonic time.

Returns

true if the flight should be retransmitted, false otherwise.

Returns false if flight is null.