websocket_request_handler.hpp
Go to the documentation of this file.
1 #ifndef CPP_WEB_SERVER_WEBSOCKET_REQUEST_HANDLER_HPP
2 #define CPP_WEB_SERVER_WEBSOCKET_REQUEST_HANDLER_HPP
3 
6 
7 #include <boost/function.hpp>
8 #include <boost/shared_ptr.hpp>
9 
10 namespace async_web_server_cpp
11 {
12 
14 
15 typedef boost::function<WebsocketConnection::MessageHandler(
16  const HttpRequest&, boost::shared_ptr<WebsocketConnection>)>
18 
24 {
25 public:
26  WebsocketHttpRequestHandler(WebsocketRequestHandler handler);
27  bool operator()(const HttpRequest& request,
28  boost::shared_ptr<HttpConnection> connection,
29  const char* begin, const char* end);
30 
31  static const std::string KEY_MAGIC_STRING;
32 
33 private:
34  WebsocketRequestHandler handler_;
35 };
36 
37 } // namespace async_web_server_cpp
38 
39 #endif
boost::function< void(const WebsocketMessage &message)> MessageHandler
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)


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Mon Feb 28 2022 21:54:08