20 static std::unique_ptr<UdpOptions>
ParseFromString(std::string_view udp_url);
22 const std::string& address()
const {
return address_; }
23 uint16_t port()
const {
return port_; }
24 bool reuse()
const {
return reuse_; }
25 const std::string& interface_address()
const {
return interface_address_; }
26 unsigned timeout_us()
const {
return timeout_us_; }
27 const std::string& source_address()
const {
return source_address_; }
28 bool is_source_specific_multicast()
const {
29 return is_source_specific_multicast_;
31 int buffer_size()
const {
return buffer_size_; }
37 std::string address_ =
"0.0.0.0";
42 std::string interface_address_ =
"0.0.0.0";
44 unsigned timeout_us_ = 0;
46 std::string source_address_ =
"0.0.0.0";
47 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(std::string_view udp_url)
All the methods that are virtual are virtual for mocking.