Public Member Functions | List of all members
ndn::ElementListener Class Referenceabstract

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>

Inheritance diagram for ndn::ElementListener:
ndn_ElementListener ndn::Node

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
 

Detailed Description

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.

Member Function Documentation

virtual void ndn::ElementListener::onReceivedElement ( const uint8_t *  element,
size_t  elementLength 
)
pure virtual

This is called when an entire element is received.

You must extend this class to override this method.

Parameters
elementpointer to the element. This buffer is only valid during this call. If you need the data later, you must copy.
elementLengthlength of element

Implemented in ndn::Node.


The documentation for this class was generated from the following files: