mgmt: Reinitialize multicast faces and partially reload config file on HUP signal
The following elements from the config file are reloaded:
- effective user/group
- log levels
- multicast faces (enable/disable)
- security
Change-Id: I6ddf124702b30610dd0404d8fbaa9a9d800f02bf
Refs: #1584
diff --git a/core/face-uri.hpp b/core/face-uri.hpp
index 94474c7..9173d8a 100644
--- a/core/face-uri.hpp
+++ b/core/face-uri.hpp
@@ -123,6 +123,15 @@
std::string
toString() const;
+public: // EqualityComparable concept
+ /// equality operator
+ bool
+ operator==(const FaceUri& rhs) const;
+
+ /// inequality operator
+ bool
+ operator!=(const FaceUri& rhs) const;
+
private:
std::string m_scheme;
std::string m_host;
@@ -172,6 +181,22 @@
return os.str();
}
+inline bool
+FaceUri::operator==(const FaceUri& rhs) const
+{
+ return (m_scheme == rhs.m_scheme &&
+ m_host == rhs.m_host &&
+ m_isV6 == rhs.m_isV6 &&
+ m_port == rhs.m_port &&
+ m_path == rhs.m_path);
+}
+
+inline bool
+FaceUri::operator!=(const FaceUri& rhs) const
+{
+ return !(*this == rhs);
+}
+
inline std::ostream&
operator<<(std::ostream& os, const FaceUri& uri)
{