udpstream.pacing_rate = atoi(pacing_rate_it->second.c_str()) * 1024 / 8;
}
+ // Parse the TTL. The same value is used for unicast and multicast.
+ map<string, string>::const_iterator ttl_it = line.parameters.find("ttl");
+ if (ttl_it == line.parameters.end()) {
+ udpstream.ttl = -1;
+ } else {
+ udpstream.ttl = atoi(ttl_it->second.c_str());
+ }
+
config->udpstreams.push_back(udpstream);
return true;
}