GetTransportFeedbackVector return vector with lost packets too, sorted by seq-num

1. GetTransportFeedbackVector will now return a vector which also explicitly states lost packets.
2. The returned vector is unsorted (uses default order - by sequence number). It's up to the users to sort otherwise, if they need a different order.

BUG=None

Review-Url: https://codereview.webrtc.org/2707383006
Cr-Commit-Position: refs/heads/master@{#17114}
This commit is contained in:
elad.alon
2017-03-08 05:03:53 -08:00
committed by Commit bot
parent 41f8a88e4f
commit ec304f96b3
5 changed files with 128 additions and 39 deletions

View File

@ -279,6 +279,7 @@ struct PacketFeedback {
pacing_info(pacing_info) {}
static constexpr int kNotAProbe = -1;
static constexpr int64_t kNotReceived = -1;
// NOTE! The variable |creation_time_ms| is not used when testing equality.
// This is due to |creation_time_ms| only being used by SendTimeHistory
@ -295,7 +296,8 @@ struct PacketFeedback {
// Time corresponding to when this object was created.
int64_t creation_time_ms;
// Time corresponding to when the packet was received. Timestamped with the
// receiver's clock.
// receiver's clock. For unreceived packet, the sentinel value kNotReceived
// is used.
int64_t arrival_time_ms;
// Time corresponding to when the packet was sent, timestamped with the
// sender's clock.