X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpstream.h;h=4d1e1f7ba39c693fc6344136ac01e9d4cad1b0ad;hp=3424b984955ded48e1f17c620b60d429b4efa8ac;hb=9bb62cbda887f69e570a3ea0fd28b564c5adc2c9;hpb=adbeb2f8972672ed1059509662d006df47762228 diff --git a/udpstream.h b/udpstream.h index 3424b98..4d1e1f7 100644 --- a/udpstream.h +++ b/udpstream.h @@ -7,6 +7,7 @@ // that there is no state (UDP itself is, of course, stateless). #include +#include #include #include #include @@ -16,7 +17,7 @@ class MarkPool; class UDPStream { public: // can be NULL. Does not take ownership of the mark pool. - UDPStream(const sockaddr_in6 &dst, MarkPool *mark_pool); + UDPStream(const sockaddr_in6 &dst, MarkPool *mark_pool, uint32_t pacing_rate); ~UDPStream(); void send(const char *data, size_t bytes); @@ -28,6 +29,7 @@ private: int sock; MarkPool *mark_pool; int fwmark; + uint32_t pacing_rate; }; #endif // !defined(_UDPSTREAM_H)