From acfabd815f1be870ea01120248384c663832e2b2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 23 Jan 2018 08:57:43 +0100 Subject: Handle download failure in TAI bulletin download and replace boost regex with std --- src/dabOutput/dabOutputUdp.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/dabOutput') diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp index 20e0c40..c129569 100644 --- a/src/dabOutput/dabOutputUdp.cpp +++ b/src/dabOutput/dabOutputUdp.cpp @@ -33,7 +33,7 @@ #include #include -#include +#include #include #include #include @@ -54,14 +54,14 @@ int DabOutputUdp::Open(const char* name) { using namespace std; - using namespace boost; const string uri_without_proto(name); regex re_url("([^:]+):([0-9]+)(.*)"); regex re_query("[?](?:src=([^&,]+))(?:[&,]ttl=([0-9]+))?"); smatch what; - if (regex_match(uri_without_proto, what, re_url, match_default)) { + if (regex_match(uri_without_proto, what, re_url, + regex_constants::match_default)) { string address = what[1]; if (this->packet_->getAddress().setAddress(address.c_str()) == -1) { @@ -83,7 +83,8 @@ int DabOutputUdp::Open(const char* name) string query_params = what[3]; smatch query_what; - if (regex_match(query_params, query_what, re_query, match_default)) { + if (regex_match(query_params, query_what, re_query, + regex_constants::match_default)) { string src = query_what[1]; int err = socket_->setMulticastSource(src.c_str()); -- cgit v1.2.3