28#ifndef WEBSOCKETPP_MESSAGE_BUFFER_ALLOC_HPP
29#define WEBSOCKETPP_MESSAGE_BUFFER_ALLOC_HPP
35namespace message_buffer {
40template <
typename message>
42 :
public lib::enable_shared_from_this<con_msg_manager<message> >
46 typedef lib::shared_ptr<con_msg_manager>
ptr;
47 typedef lib::weak_ptr<con_msg_manager>
weak_ptr;
56 return message_ptr(lib::make_shared<message>(type::shared_from_this()));
67 return message_ptr(lib::make_shared<message>(type::shared_from_this(),
op,size));
87template <
typename con_msg_manager>
88class endpoint_msg_manager {
con_msg_manager< message > type
bool recycle(message *)
Recycle a message.
lib::weak_ptr< con_msg_manager > weak_ptr
lib::shared_ptr< con_msg_manager > ptr
message_ptr get_message(frame::opcode::value op, size_t size)
Get a message buffer with specified size and opcode.
message_ptr get_message()
Get an empty message buffer.
con_msg_man_ptr get_manager() const
Get a pointer to a connection message manager.
con_msg_manager::ptr con_msg_man_ptr
Represents a buffer for a single WebSocket message.
lib::shared_ptr< message > ptr
Namespace for the WebSocket++ project.