Go to the documentation of this file.
3 #include <boost/bind.hpp>
4 #include <boost/make_shared.hpp>
12 : connection_(connection)
48 std::vector<unsigned char> buffer;
62 _this->handle_read(begin, end);
66 boost::tribool frame_result;
67 const char* parse_end = begin;
68 while (parse_end < end)
70 boost::tie(frame_result, parse_end) =
75 boost::tribool message_result =
84 else if (!frame_result)
bool sendTextMessage(const std::string &content)
bool fromMessage(const WebsocketMessage &message)
bool serialize(std::vector< unsigned char > &buffer)
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
boost::tuple< boost::tribool, InputIterator > parse(WebsocketFrame &frame, InputIterator begin, InputIterator end)
void handle_read(const char *begin, const char *end)
boost::shared_ptr< HttpConnection > HttpConnectionPtr
WebsocketConnection(HttpConnectionPtr connection)
WebsocketMessage message_
boost::tribool consume(WebsocketMessage &message, WebsocketFrame &frame)
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