An ElementListenerLite holds an OnReceivedElementLite function pointer. More...
#include <element-listener-lite.hpp>
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 |
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.
ndn::ElementListenerLite::ElementListenerLite | ( | OnReceivedElementLite | onReceivedElement | ) |
Create an ElementListenerLite to use the onReceivedElement function pointer.
onReceivedElement | When 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. |