X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FUnixSocketServer.hpp;h=d81478db9d753c09aea4bcd92097e0bbf8e27410;hb=0a4589de6e89782d734930a2a7648d5921b176d8;hp=cf3c18d2704413968f08e33b3e6198e412d6dece;hpb=c9ee9d5360e8cad2cb2f807f5ebfabe9304d88c4;p=o-du%2Fl2.git diff --git a/src/o1/UnixSocketServer.hpp b/src/o1/UnixSocketServer.hpp index cf3c18d27..d81478db9 100644 --- a/src/o1/UnixSocketServer.hpp +++ b/src/o1/UnixSocketServer.hpp @@ -17,8 +17,8 @@ *******************************************************************************/ /* This file contains UnixSocketServer class that listens for Netconf Alarm messages - on a Unix socket from ODU. It calls the AlarmManager functions for raising - or clearing the alarms based on the actions received + on a Unix socket from ODU. It calls the AlarmManager functions for raising + or clearing the alarms based on the actions received */ #ifndef __UNIX_SOCKET_SERVER_HPP__ @@ -26,11 +26,12 @@ #include #include #include "Thread.hpp" +#include "Subject.hpp" using std::string; #define BUFLEN 512 -class UnixSocketServer : public Thread +class UnixSocketServer : public Thread , public Subject { private: @@ -38,15 +39,15 @@ class UnixSocketServer : public Thread string mSockPath; int readMessage(int); int makeSocket(); - + protected: bool run(); bool mIsRunning; public: - UnixSocketServer(const string& sockPath); + UnixSocketServer(const string& sockPath); ~UnixSocketServer(); - bool isRunning() const; + bool isRunning() const; virtual void cleanUp(void); };