X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=rsencoder.h;h=6ab6e4b2de6f140a20fe02ce876431fcccc13ca4;hb=a8e9b75339d48294145a9b102e43046a10b0bc36;hp=75f0f24cc9ba6330603f3ca42f0748d38971bc32;hpb=9e8a28e92f8e092a2409ddad770b3dbe088a4fe9;p=greproxy diff --git a/rsencoder.h b/rsencoder.h index 75f0f24..6ab6e4b 100644 --- a/rsencoder.h +++ b/rsencoder.h @@ -2,6 +2,7 @@ #define _RSENCODER_H 1 #include +#include #include #include @@ -12,14 +13,15 @@ class Sender; class RSEncoder : public Sender { public: - RSEncoder(Sender* sender) : sender(sender) {} + RSEncoder(Sender* sender); virtual void send_packet(uint16_t proto, const std::string &data, int incoming_seq); private: void finish_group(); - Sender* sender; + Sender *sender; std::vector packet_history; + fecpp::fec_code rs; }; #endif // !defined(_RSENCODER_H)