#ifndef __WSDOOR__ #define __WSDOOR__ #include "../websocketpp/src/sockets/tls.hpp" #include "../websocketpp/src/websocketpp.hpp" #include #include #include #include #include #if 1 #define WSDOOR_SERVER server #else #define WSDOOR_SERVER server_tls #endif class WSDoor { private: websocketpp::WSDOOR_SERVER* mEndpoint; boost::thread* mThread; void startListening(); public: WSDoor() : mEndpoint(0), mThread(0) { ; } void stop(); static WSDoor* createWSDoor(); }; #endif // vim:ts=4