}
};
-class Reorderer : public Protocol {
+class Reorderer : public Sender {
public:
- Reorderer(Protocol* sender);
+ Reorderer(Sender* sender);
void send_packet(uint16_t proto, const std::string& data, int seq);
- virtual int fd() const { assert(false); }
private:
void check_ts_discontinuity(uint16_t proto, const std::string &data, bool silence);
- Protocol* sender;
+ Sender* sender;
int last_seq;
std::priority_queue<GREPacket, std::vector<GREPacket>, std::greater<GREPacket>> packet_buffer;