]> git.sesse.net Git - greproxy/blobdiff - tunprotocol.h
Split Protocol into Sender and Reader.
[greproxy] / tunprotocol.h
index 9af2e78149787815e9d1994757b2f0c1c9639a3c..7f160668f7973985988f515cd98d925f38263896 100644 (file)
@@ -6,12 +6,12 @@
 #include <stdint.h>
 #include <string>
 
-class TUNProtocol : public Protocol {
+class TUNProtocol : public Sender, public Reader {
 public:
        TUNProtocol(const char *devname);
        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 tunfd;