include
async_web_server_cpp
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
4
#include "
async_web_server_cpp/http_request_handler.hpp
"
5
#include "
async_web_server_cpp/websocket_connection.hpp
"
6
7
#include <boost/function.hpp>
8
#include <boost/shared_ptr.hpp>
9
10
namespace
async_web_server_cpp
11
{
12
13
class
WebsocketConnection
;
14
15
typedef
boost::function<
WebsocketConnection::MessageHandler
(
16
const
HttpRequest
&, boost::shared_ptr<WebsocketConnection>)>
17
WebsocketRequestHandler
;
18
23
class
WebsocketHttpRequestHandler
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
http_request_handler.hpp
async_web_server_cpp::WebsocketHttpRequestHandler::WebsocketHttpRequestHandler
WebsocketHttpRequestHandler(WebsocketRequestHandler handler)
Definition:
websocket_request_handler.cpp:20
async_web_server_cpp::WebsocketRequestHandler
boost::function< WebsocketConnection::MessageHandler(const HttpRequest &, boost::shared_ptr< WebsocketConnection >)> WebsocketRequestHandler
Definition:
websocket_request_handler.hpp:13
async_web_server_cpp
Definition:
http_connection.hpp:14
async_web_server_cpp::HttpRequest
Definition:
http_request.hpp:18
async_web_server_cpp::WebsocketHttpRequestHandler::handler_
WebsocketRequestHandler handler_
Definition:
websocket_request_handler.hpp:34
async_web_server_cpp::WebsocketHttpRequestHandler::KEY_MAGIC_STRING
static const std::string KEY_MAGIC_STRING
Definition:
websocket_request_handler.hpp:31
async_web_server_cpp::WebsocketHttpRequestHandler::operator()
bool operator()(const HttpRequest &request, boost::shared_ptr< HttpConnection > connection, const char *begin, const char *end)
Definition:
websocket_request_handler.cpp:26
async_web_server_cpp::WebsocketConnection
Definition:
websocket_connection.hpp:26
async_web_server_cpp::WebsocketHttpRequestHandler
Definition:
websocket_request_handler.hpp:23
websocket_connection.hpp
async_web_server_cpp::WebsocketConnection::MessageHandler
boost::function< void(const WebsocketMessage &message)> MessageHandler
Definition:
websocket_connection.hpp:34
async_web_server_cpp
Author(s): Mitchell Wills
, Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06