From a70505989f4210a1da7fd5c29552ccf5139ed6a5 Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Fri, 6 Mar 2020 23:11:54 +0100 Subject: [PATCH] Minor changes --- README.md | 2 +- daemon/browser.cpp | 6 +++--- daemon/browser.hpp | 1 + daemon/session_manager.hpp | 1 + webui/public/index.html | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 762c66f..693e256 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The daemon can be cross-compiled for multiple platforms and implements the follo * control and configuration of up to 64 sources and sinks using the ALSA RAVENNA/AES67 driver via netlink * session handling and SDP parsing and creation * HTTP REST API for control and configuration -* SAP discovery protocol and SAP browse +* SAP discovery protocol and SAP browser * IGMP handling for SAP, RTP and PTP multicast traffic The directory also contains the daemon regression tests in the [tests](daemon/tests) subdirectory. To run daemon tests install the ALSA RAVENNA/AES67 kernel module enter the [tests](daemon/tests) subdirectory and run *./daemon-test -l all* diff --git a/daemon/browser.cpp b/daemon/browser.cpp index a49a704..48e1a24 100644 --- a/daemon/browser.cpp +++ b/daemon/browser.cpp @@ -94,11 +94,11 @@ bool Browser::worker() { sources_[id] = source; } } else { - // Source is already in the mamap + // Source is already in the map if (is_announce) { BOOST_LOG_TRIVIAL(debug) << "browser:: refreshing SAP source " << (*it).second.id; - // annoucement, update last seen and announce periods + // annoucement, update last seen and announce period uint32_t last_seen = duration_cast(steady_clock::now() - startup).count(); (*it).second.announce_period = last_seen - (*it).second.last_seen; @@ -112,7 +112,7 @@ bool Browser::worker() { } } - // check if it's time to check the SAP remote sources + // check if it's time to update the SAP remote sources if ((duration_cast(steady_clock::now() - sap_timepoint).count()) > sap_interval) { sap_timepoint = steady_clock::now(); diff --git a/daemon/browser.hpp b/daemon/browser.hpp index 23d0632..e1b621a 100644 --- a/daemon/browser.hpp +++ b/daemon/browser.hpp @@ -43,6 +43,7 @@ class Browser { public: static std::shared_ptr create( std::shared_ptr config); + Browser() = delete; Browser(const Browser&) = delete; Browser& operator=(const Browser&) = delete; virtual ~Browser(){ stop(); }; diff --git a/daemon/session_manager.hpp b/daemon/session_manager.hpp index d59c13d..f51caa0 100644 --- a/daemon/session_manager.hpp +++ b/daemon/session_manager.hpp @@ -97,6 +97,7 @@ class SessionManager { static std::shared_ptr create( std::shared_ptr driver, std::shared_ptr config); + SessionManager() = delete; SessionManager(const SessionManager&) = delete; SessionManager& operator=(const SessionManager&) = delete; virtual ~SessionManager(){ stop(); }; diff --git a/webui/public/index.html b/webui/public/index.html index 2d2dafa..38477de 100644 --- a/webui/public/index.html +++ b/webui/public/index.html @@ -13,7 +13,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - AES64 Daemon WebUI + AES67 Daemon WebUI