An ElementListener extends an ndn_ElementListener struct to proved an abstract virtual onReceivedElement function which wraps the onReceivedElement used by the ndn_ElementListener struct. More...
#include <element-listener.hpp>
Public Member Functions | |
virtual void | onReceivedElement (const uint8_t *element, size_t elementLength)=0 |
This is called when an entire element is received. More... | |
Additional Inherited Members | |
Public Attributes inherited from ndn_ElementListener | |
ndn_OnReceivedElement | onReceivedElement |
see ndn_ElementListener_initialize | |
An ElementListener extends an ndn_ElementListener struct to proved an abstract virtual onReceivedElement function which wraps the onReceivedElement used by the ndn_ElementListener struct.
You must extend this class to override onReceivedElement.
|
pure virtual |
This is called when an entire element is received.
You must extend this class to override this method.
element | pointer to the element. This buffer is only valid during this call. If you need the data later, you must copy. |
elementLength | length of element |
Implemented in ndn::Node.