Wire Sysio Wire Sysion 1.0.0
|
#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 |
Public Member Functions | |
message_ptr | get_message () |
Get an empty message buffer. | |
message_ptr | get_message (frame::opcode::value op, size_t size) |
Get a message buffer with specified size and opcode. | |
bool | recycle (message *) |
Recycle a message. | |
message_ptr | get_message (size_t size) const |
Get a message buffer with specified size. | |
bool | recycle (message *msg) |
Recycle a message. | |
A connection message manager that allocates a new message for each request.
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 |
con_msg_manager<message> websocketpp::message_buffer::alloc::con_msg_manager< message >::type |
typedef lib::weak_ptr< con_msg_manager > websocketpp::message_buffer::alloc::con_msg_manager< message >::weak_ptr |
|
inline |
|
inline |
op | The opcode to use |
size | Minimum size in bytes to request for the message payload. |
|
inline |
|
inline |
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. |
Definition at line 80 of file alloc.hpp.
|
inline |
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. |
Definition at line 187 of file pool.hpp.