]> git.sesse.net Git - cubemap/blobdiff - udpstream.h
Remove some legacy from older versions that nobody uses anymore.
[cubemap] / udpstream.h
index 3424b984955ded48e1f17c620b60d429b4efa8ac..4d1e1f7ba39c693fc6344136ac01e9d4cad1b0ad 100644 (file)
@@ -7,6 +7,7 @@
 // that there is no state (UDP itself is, of course, stateless).
 
 #include <arpa/inet.h>
+#include <netinet/in.h>
 #include <stddef.h>
 #include <stdint.h>
 #include <sys/types.h>
@@ -16,7 +17,7 @@ class MarkPool;
 class UDPStream {
 public:
        // <mark_pool> 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)