]> git.sesse.net Git - greproxy/blobdiff - tungre.cpp
Split Protocol out into a header.
[greproxy] / tungre.cpp
index 9b93e8531bab246f761605de5a7d08a567a66558..5735817e76dec5b466f128dcc9ee35fe9b26f488 100644 (file)
@@ -13,6 +13,8 @@
 #include <string>
 #include <queue>
 
+#include "protocol.h"
+
 using namespace std;
 
 struct gre_header {
@@ -69,14 +71,7 @@ struct GREPacket {
        }
 };
 
-class Protocol {
-public:
-       virtual void send_packet(uint16_t proto, const string &data) = 0;
-       virtual int fd() const = 0;
-};
-
 class Reorderer;
-class Protocol;
 
 class GREProtocol : public Protocol {
 public: