A connection message manager that allocates a new message for each request. More...
#include <alloc.hpp>
Public Types | |
typedef con_msg_manager< message > | type |
typedef lib::shared_ptr< con_msg_manager > | ptr |
typedef lib::weak_ptr< con_msg_manager > | weak_ptr |
typedef message::ptr | message_ptr |
typedef lib::shared_ptr< con_msg_manager > | ptr |
typedef lib::weak_ptr< con_msg_manager > | weak_ptr |
typedef message::ptr | message_ptr |
Public Member Functions | |
message_ptr | get_message () |
Get an empty message buffer. More... | |
message_ptr | get_message (frame::opcode::value op, size_t size) |
Get a message buffer with specified size and opcode. More... | |
bool | recycle (message *) |
Recycle a message. More... | |
message_ptr | get_message (size_t size) const |
Get a message buffer with specified size. More... | |
bool | recycle (message *msg) |
Recycle a message. More... | |
A connection message manager that allocates a new message for each request.
typedef con_msg_manager<message> websocketpp::message_buffer::alloc::con_msg_manager< message >::type |
typedef lib::shared_ptr<con_msg_manager> websocketpp::message_buffer::alloc::con_msg_manager< message >::ptr |
typedef lib::weak_ptr<con_msg_manager> websocketpp::message_buffer::alloc::con_msg_manager< message >::weak_ptr |
typedef message::ptr websocketpp::message_buffer::alloc::con_msg_manager< message >::message_ptr |
typedef lib::shared_ptr<con_msg_manager> websocketpp::message_buffer::alloc::con_msg_manager< message >::ptr |
typedef lib::weak_ptr<con_msg_manager> websocketpp::message_buffer::alloc::con_msg_manager< message >::weak_ptr |
typedef message::ptr websocketpp::message_buffer::alloc::con_msg_manager< message >::message_ptr |
|
inline |
|
inline |
|
inline |
Recycle a message.
This method shouldn't be called. If it is, return false to indicate an error. The rest of the method recycle chain should notice this and free the memory.
msg | The message to be recycled. |
|
inline |
|
inline |
Recycle a message.
This method shouldn't be called. If it is, return false to indicate an error. The rest of the method recycle chain should notice this and free the memory.
msg | The message to be recycled. |