X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpstream.h;h=271764e297158ad17dbdb2b86cb6aef623690f9f;hp=3424b984955ded48e1f17c620b60d429b4efa8ac;hb=5cc8cd703a637e276c2595953878fd9561592bfa;hpb=7b3d494100ef1063578b1ef76818baee4ab53ada diff --git a/udpstream.h b/udpstream.h index 3424b98..271764e 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 @@ -15,8 +16,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, uint32_t pacing_rate); ~UDPStream(); void send(const char *data, size_t bytes); @@ -26,8 +26,7 @@ private: sockaddr_in6 dst; int sock; - MarkPool *mark_pool; - int fwmark; + uint32_t pacing_rate; }; #endif // !defined(_UDPSTREAM_H)