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_;
33 int buffer_size()
const {
return buffer_size_; }
39 std::string address_ =
"0.0.0.0";
44 std::string interface_address_ =
"0.0.0.0";
46 unsigned timeout_us_ = 0;
48 std::string source_address_ =
"0.0.0.0";
49 bool is_source_specific_multicast_ =
false;
Options parsed from UDP url string of the form: udp://ip:port[?options].
static std::unique_ptr< UdpOptions > ParseFromString(base::StringPiece udp_url)
All the methods that are virtual are virtual for mocking.