10 #include "packager/base/strings/string_piece.h" 22 static std::unique_ptr<UdpOptions>
ParseFromString(base::StringPiece udp_url);
24 const std::string& address()
const {
return address_; }
25 uint16_t port()
const {
return port_; }
26 bool reuse()
const {
return reuse_; }
27 const std::string& interface_address()
const {
return interface_address_; }
28 unsigned timeout_us()
const {
return timeout_us_; }
29 const std::string& source_address()
const {
return source_address_; }
30 bool is_source_specific_multicast()
const {
31 return is_source_specific_multicast_;
38 std::string address_ =
"0.0.0.0";
43 std::string interface_address_ =
"0.0.0.0";
45 unsigned timeout_us_ = 0;
47 std::string source_address_ =
"0.0.0.0";
48 bool is_source_specific_multicast_ =
false;
static std::unique_ptr< UdpOptions > ParseFromString(base::StringPiece udp_url)
All the methods that are virtual are virtual for mocking.
Options parsed from UDP url string of the form: udp://ip:port[?options].