]> git.sesse.net Git - greproxy/blobdiff - tunprotocol.h
Add README and license.
[greproxy] / tunprotocol.h
index cfe3b46ef47bfcd1333cd2ec4eddec905314d318..d9f40fa4e661c07e43f34b40ea838ec8e6ed70e1 100644 (file)
@@ -6,15 +6,16 @@
 #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);
+       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;
+       int seq;
 };
 
 #endif  // !defined(_TUNPROTOCOL_H)