20 bool operator> (const GREPacket &other) const {
21 return seq > other.seq;
25 class Reorderer : public Protocol {
27 Reorderer(Protocol* sender);
28 void send_packet(uint16_t proto, const std::string& data, int seq);
29 virtual int fd() const { assert(false); }
32 void check_ts_discontinuity(uint16_t proto, const std::string &data, bool silence);
37 std::priority_queue<GREPacket, std::vector<GREPacket>, std::greater<GREPacket>> packet_buffer;
38 std::map<int, int> ccs;
41 #endif // !defined(_REORDERER_H)