From 229698dbb0c331a30446973c6edb24aba3552cfe Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 5 Jul 2013 11:41:47 -0500 Subject: [PATCH] add experimental connection get message buffer method --- websocketpp/connection.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/websocketpp/connection.hpp b/websocketpp/connection.hpp index 134e940f39..8a965f407f 100644 --- a/websocketpp/connection.hpp +++ b/websocketpp/connection.hpp @@ -957,6 +957,21 @@ public: transport_con_type::set_handle(hdl); } + /// Get a message buffer + /** + * @internal + * + * Warning: This is not guaranteed to be part of the public release API + * + * Message buffers are used to store message payloads and other message + * metadata. + * + * @return A new message. + */ + message_ptr get_message() const { + return m_msg_manager->get_message(); + } + void start(); void read_handshake(size_t num_bytes);