summaryrefslogtreecommitdiff
path: root/ControlServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ControlServer.cpp')
-rw-r--r--ControlServer.cpp42
1 files changed, 19 insertions, 23 deletions
diff --git a/ControlServer.cpp b/ControlServer.cpp
index 31363ae..5344e44 100644
--- a/ControlServer.cpp
+++ b/ControlServer.cpp
@@ -1,31 +1,27 @@
#include "ControlServer.h"
-namespace plexclient
-{
+namespace plexclient {
-ControlServer::ControlServer()
-{
- m_pSvs = new Poco::Net::ServerSocket(3200);;
- m_pSrv = new Poco::Net::HTTPServer(new PlexReqHandlerFactory, *m_pSvs, new Poco::Net::HTTPServerParams);
-}
+ ControlServer::ControlServer() {
+ m_pSvs = new Poco::Net::ServerSocket(3200);;
+ m_pSrv = new Poco::Net::HTTPServer(new PlexReqHandlerFactory, *m_pSvs, new Poco::Net::HTTPServerParams);
+ }
-void ControlServer::Stop()
-{
- Cancel(1);
- // Stop the HTTPServer
- m_pSrv->stop();
-}
+ void ControlServer::Stop() {
+ Cancel(1);
+ // Stop the HTTPServer
+ m_pSrv->stop();
+ }
-void ControlServer::Action()
-{
- isyslog("[plex] Starting Controlserver...");
- // start the HTTPServer
- m_pSrv->start();
- while(Running()) {
- SubscriptionManager::GetInstance().Notify();
- cCondWait::SleepMs(1000);
- }
-}
+ void ControlServer::Action() {
+ isyslog("[plex] Starting Controlserver...");
+ // start the HTTPServer
+ m_pSrv->start();
+ while (Running()) {
+ SubscriptionManager::GetInstance().Notify();
+ cCondWait::SleepMs(1000);
+ }
+ }
}