]> git.sesse.net Git - cubemap/blobdiff - config.h
Support setting TTL on outgoing UDP streams. Especially useful for multicast.
[cubemap] / config.h
index 60531486ea94e91cf82740bc9fe9293110f836e6..d5b04113303d2cf026a21b823d97e385e02eb540 100644 (file)
--- a/config.h
+++ b/config.h
@@ -21,6 +21,7 @@ struct UDPStreamConfig {
        sockaddr_in6 dst;
        std::string src;  // Can be empty.
        uint32_t pacing_rate;  // In bytes per second. Default is ~0U (no limit).
+       int ttl;  // Default is -1 (use operating system default).
 };
 
 struct AcceptorConfig {