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_; }
39 std::string interface_address_;
41 unsigned timeout_us_ = 0;
static std::unique_ptr< UdpOptions > ParseFromString(base::StringPiece udp_url)
Options parsed from UDP url string of the form: udp://ip:port[?options].