![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This class defines the API for the transport layer. More...
#include <transport.h>
Public Member Functions | |
Commands | |
virtual void | initialize ()=0 |
Initialize the associated transport layer. More... | |
virtual void | add (Endpoint *ep)=0 |
Register the given Endpoint to receive events. More... | |
virtual void | remove (Endpoint *ep=nullptr)=0 |
Free the system resources associated with the given Endpoint , and remove it from receiving any further events. More... | |
virtual void | destroy ()=0 |
Free the system resources associated with this transport layer. | |
virtual const HF::UID::UID | uid () const =0 |
Return the UID of the local device on this transport layer. More... | |
This class defines the API for the transport layer.
Definition at line 137 of file inc/hanfun/transport.h.
|
pure virtual |
Register the given Endpoint
to receive events.
This should be possible to register multiple end-points, to the transport layer.
[in] | ep | pointer to the end-point to register in the transport layer. |
Implemented in HF::Devices::Concentrator::Transport, HF::Devices::Node::Transport, and HF::Transport::AbstractLayer.
|
pure virtual |
Initialize the associated transport layer.
This method should initialize the transport layer using it's default values.
Implemented in HF::Transport::AbstractLayer, and HF::Application::Transport.
|
pure virtual |
Free the system resources associated with the given Endpoint
, and remove it from receiving any further events.
If ep
is nullptr
then all end-points should be removed.
When all end-points are removed all remaining system resources, associated with this transport layer should be freed.
ep | pointer to the endpoint to remove from the transport layer. |
Implemented in HF::Transport::AbstractLayer.
|
pure virtual |
Return the UID of the local device on this transport layer.
For example on an ULE device this would return the IPUI of the device.
Implemented in HF::Transport::AbstractLayer.