12 #ifndef CASS_TCPSERVER_H
13 #define CASS_TCPSERVER_H
18 #include <QtCore/QThread>
19 #include <QtCore/QMutex>
20 #include <QtCore/QRunnable>
23 #include "soapCASSsoapService.h"
67 friend class ::CASSsoapService;
78 static shared_pointer
instance(
size_t port=12321);
100 throw std::logic_error(
"SoapServer does not exist");
SoapHandler(CASSsoapService *soap)
constructor
file contains declaration of the CASSEvent
CASSsoapService * _soap
the service
CASSsoapService * _soap
the service
virtual void run()
perform thread-work
static QMutex _mutex
Singleton operation locker.
SoapServer & operator=(const SoapServer &)
Disabled assignment.
static shared_pointer instance()
return existing instance for our friends
virtual ~SoapHandler()
destructor
std::tr1::shared_ptr< SoapServer > shared_pointer
a shared pointer of this class
static const size_t _backlog
maximum backlog of open requests
Handle a single SOAP request.
static shared_pointer _instance
pointer to the singleton instance
SoapServer()
Disabled default constructor.
virtual void run()
handle request and terminate
const size_t _port
server port