Go to the documentation of this file. 1 #ifndef CPP_WEB_SERVER_WEBSOCKET_CONNECTION_HPP
2 #define CPP_WEB_SERVER_WEBSOCKET_CONNECTION_HPP
7 #include <boost/asio.hpp>
8 #include <boost/enable_shared_from_this.hpp>
9 #include <boost/noncopyable.hpp>
10 #include <boost/shared_ptr.hpp>
11 #include <boost/thread/mutex.hpp>
16 class WebsocketHttpRequestHandler;
27 :
public boost::enable_shared_from_this<WebsocketConnection>,
28 private boost::noncopyable
44 const char* begin,
const char* end);
45 void handle_read(
const char* begin,
const char* end);
bool sendTextMessage(const std::string &content)
static void static_handle_read(WebsocketConnectionWeakPtr weak_this, const char *begin, const char *end)
WebsocketFrameParser frame_parser_
WebsocketFrameBuffer frame_buffer_
boost::weak_ptr< WebsocketConnection > WebsocketConnectionWeakPtr
boost::shared_ptr< WebsocketConnection > WebsocketConnectionPtr
void handle_read(const char *begin, const char *end)
boost::shared_ptr< HttpConnection > HttpConnectionPtr
WebsocketConnection(HttpConnectionPtr connection)
WebsocketMessage message_
bool sendFrame(WebsocketFrame &frame)
boost::function< void(const WebsocketMessage &message)> MessageHandler
void set_message_handler(MessageHandler &handler)
HttpConnectionPtr connection_
bool sendPingMessage(const std::string &content="")
bool sendMessage(const WebsocketMessage &message)
async_web_server_cpp
Author(s): Mitchell Wills
, Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06