X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=greprotocol.h;h=fd595b7a05e9b8bc59501847e6d28ea41aa51903;hb=6eb319dbbc9305b984fd70e8e6d5adebf87edbb7;hp=9cec54b7658897e0a98f158d2ff130998e0cc9e7;hpb=47f75fc7569e504a94a601cb3a81793400b134ac;p=greproxy diff --git a/greprotocol.h b/greprotocol.h index 9cec54b..fd595b7 100644 --- a/greprotocol.h +++ b/greprotocol.h @@ -8,14 +8,12 @@ #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;