Public Member Functions | Friends | List of all members
ndn::ElementListenerLite Class Reference

An ElementListenerLite holds an OnReceivedElementLite function pointer. More...

#include <element-listener-lite.hpp>

Inheritance diagram for ndn::ElementListenerLite:
ndn_ElementListener

Public Member Functions

 ElementListenerLite (OnReceivedElementLite onReceivedElement)
 Create an ElementListenerLite to use the onReceivedElement function pointer. More...
 

Friends

class TcpTransportLite
 
class UdpTransportLite
 
class UnixTransportLite
 
class ArduinoYunTcpTransportLite
 

Detailed Description

An ElementListenerLite holds an OnReceivedElementLite function pointer.

You can use this class as is, or extend it to provide data that can be accessed through the self pointer in onReceivedElement.

Constructor & Destructor Documentation

ndn::ElementListenerLite::ElementListenerLite ( OnReceivedElementLite  onReceivedElement)

Create an ElementListenerLite to use the onReceivedElement function pointer.

Parameters
onReceivedElementWhen an entire packet element is received, call onReceivedElement(ElementListenerLite *self, uint8_t *element, size_t elementLength) where self is the pointer to this object, and element is a pointer to the array of length elementLength with the bytes of the element. If you created a derived class, you can downcast self to a pointer to your derived class in order to access its members.

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