]> git.sesse.net Git - greproxy/blobdiff - reorderer.h
Mark copyright.
[greproxy] / reorderer.h
index 0007a2bcd00314779818bff24a7b577ba4057781..77fda65a43b70475296a1833a60dc21b3f762708 100644 (file)
@@ -28,6 +28,11 @@ class Reorderer : public Sender {
 public:
        Reorderer(Sender* sender);
        void send_packet(uint16_t proto, const std::string& data, int seq);
+       void possibly_adjust_tv(timeval *tv);
+
+       int get_reorders() const { return num_reorders; }
+       int get_lost_packets() const { return num_lost_packets; }
+       int get_ts_discontinuities() const { return num_ts_discontinuities; }
 
 private:
        void check_ts_discontinuity(uint16_t proto, const std::string &data, bool silence);
@@ -38,6 +43,8 @@ private:
 
        std::priority_queue<GREPacket, std::vector<GREPacket>, std::greater<GREPacket>> packet_buffer;
        std::map<int, int> ccs;
+
+       int num_reorders = 0, num_lost_packets = 0, num_ts_discontinuities = 0;
 };
 
 #endif  // !defined(_REORDERER_H)