blob: c727e2058be1d9c6512857e7b9187208751a9804 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "ControlServer.h"
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);
}
void ControlServer::Start() {
// start the HTTPServer
m_pSrv->start();
}
void ControlServer::Stop() {
// Stop the HTTPServer
m_pSrv->stop();
}
}
|