]> git.sesse.net Git - greproxy/blobdiff - greprotocol.h
Add README and license.
[greproxy] / greprotocol.h
index 9cec54b7658897e0a98f158d2ff130998e0cc9e7..739b97e17177a0a3e9936804caf3d45fcadcb5e0 100644 (file)
@@ -8,17 +8,14 @@
 
 #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;
        int sock;
        sockaddr_in6 dstaddr;
 };