#include "protocol.h"
-class Reorderer;
-
-class GREProtocol : public Protocol {
+class GREProtocol : public Sender, public Reader {
public:
GREProtocol(const in6_addr &myaddr, const in6_addr &dst);
virtual void send_packet(uint16_t proto, const std::string &data, int incoming_seq);
virtual int fd() const;
- void read_packet(Protocol* sender);
+ virtual void read_packet(Sender* sender);
private:
int seq;