1 #ifndef CPP_WEB_SERVER_WEBSOCKET_REQUEST_HANDLER_HPP 2 #define CPP_WEB_SERVER_WEBSOCKET_REQUEST_HANDLER_HPP 7 #include <boost/function.hpp> 8 #include <boost/shared_ptr.hpp> 16 const HttpRequest&, boost::shared_ptr<WebsocketConnection>)>
28 boost::shared_ptr<HttpConnection> connection,
29 const char* begin,
const char* end);
boost::function< void(const WebsocketMessage &message)> MessageHandler
static const std::string KEY_MAGIC_STRING
WebsocketHttpRequestHandler(WebsocketRequestHandler handler)
boost::function< WebsocketConnection::MessageHandler(const HttpRequest &, boost::shared_ptr< WebsocketConnection >)> WebsocketRequestHandler
bool operator()(const HttpRequest &request, boost::shared_ptr< HttpConnection > connection, const char *begin, const char *end)
WebsocketRequestHandler handler_