X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=config.h;h=9a5cc571f50a6868623a88370d6a39afa9c0f777;hb=8077fd7663c0e79e4d42c9db55be1de02027a17d;hp=d5b04113303d2cf026a21b823d97e385e02eb540;hpb=b08dc2a81825a298a03f2dee2ae7dd7045e72739;p=cubemap diff --git a/config.h b/config.h index d5b0411..9a5cc57 100644 --- a/config.h +++ b/config.h @@ -13,6 +13,7 @@ struct StreamConfig { std::string url; // As seen by the client. std::string src; // Can be empty. size_t backlog_size; + size_t prebuffering_bytes; uint32_t pacing_rate; // In bytes per second. Default is ~0U (no limit). enum { STREAM_ENCODING_RAW = 0, STREAM_ENCODING_METACUBE } encoding; }; @@ -22,6 +23,12 @@ struct UDPStreamConfig { 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). + int multicast_iface_index; // Default is -1 (use operating system default). +}; + +struct Gen204Config { + std::string url; // As seen by the client. + std::string allow_origin; // Can be empty. }; struct AcceptorConfig { @@ -38,6 +45,7 @@ struct Config { int num_servers; std::vector streams; std::vector udpstreams; + std::vector pings; std::vector acceptors; std::vector log_destinations;