Namespaces | |
Classes | |
class | message |
Represents a buffer for a single WebSocket message. More... | |
Functions | |
template<typename T > | |
void | message_deleter (T *msg) |
Custom deleter for use in shared_ptrs to message. More... | |
void websocketpp::message_buffer::message_deleter | ( | T * | msg | ) |
Custom deleter for use in shared_ptrs to message.
This is used to catch messages about to be deleted and offer the manager the ability to recycle them instead. Message::recycle will return true if it was successfully recycled and false otherwise. In the case of exceptions or error this deleter frees the memory.