X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=reorderer.h;h=0007a2bcd00314779818bff24a7b577ba4057781;hb=ed84bfc7a5e30f49b35d9a864c6618cb58beb789;hp=cdde8146a090a04ddd7d44b7ce836cef4a4850e0;hpb=6eb319dbbc9305b984fd70e8e6d5adebf87edbb7;p=greproxy diff --git a/reorderer.h b/reorderer.h index cdde814..0007a2b 100644 --- a/reorderer.h +++ b/reorderer.h @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -16,6 +17,7 @@ struct GREPacket { int seq; uint16_t proto; std::string data; + timeval ts; bool operator> (const GREPacket &other) const { return seq > other.seq; @@ -32,6 +34,7 @@ private: Sender* sender; int last_seq; + timeval last_sent_packet; std::priority_queue, std::greater> packet_buffer; std::map ccs;