]> git.sesse.net Git - cubemap/blobdiff - udpstream.h
Add suppor for raw (non-Metacube) inputs over HTTP. Only really useful for TS.
[cubemap] / udpstream.h
index 3424b984955ded48e1f17c620b60d429b4efa8ac..ede738edb45d075eec53a50a7945786301cc336f 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>
@@ -15,8 +16,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, uint32_t pacing_rate, int ttl, int multicast_iface_index);
        ~UDPStream();
 
        void send(const char *data, size_t bytes);
@@ -26,8 +26,6 @@ private:
 
        sockaddr_in6 dst;
        int sock;
-       MarkPool *mark_pool;
-       int fwmark;
 };
 
 #endif  // !defined(_UDPSTREAM_H)