NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::message_buffer Namespace Reference

Namespaces

 alloc
 
 pool
 

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...
 

Function Documentation

◆ message_deleter()

template<typename T >
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.

Definition at line 84 of file pool.hpp.