X-Git-Url: https://git.sesse.net/?p=greproxy;a=blobdiff_plain;f=tungre.cpp;h=5735817e76dec5b466f128dcc9ee35fe9b26f488;hp=9b93e8531bab246f761605de5a7d08a567a66558;hb=2b1c67c9a219ea85de7db4ada9364da3905e7b62;hpb=42504a97694173e4686aab210e77cbd4a758ab13 diff --git a/tungre.cpp b/tungre.cpp index 9b93e85..5735817 100644 --- a/tungre.cpp +++ b/tungre.cpp @@ -13,6 +13,8 @@ #include #include +#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: