HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Application::Transport Class Reference

Transport Layer implementation over TCP/IP using libuv. More...

#include <transport.h>

+ Inheritance diagram for HF::Application::Transport:
+ Collaboration diagram for HF::Application::Transport:

Public Member Functions

void initialize ()
 Initialize the associated transport layer. More...
 
void destroy ()
 Free the system resources associated with this transport layer.
 
- Public Member Functions inherited from HF::Devices::Concentrator::Transport
void add (HF::Transport::Endpoint *ep)
 Register the given Endpoint to receive events. More...
 
void add (HF::Transport::Link *link)
 Add the given link to the list of known links and call the connected method for all registered end-points. More...
 
void remove (HF::Transport::Link *link=nullptr)
 Call the disconnected method for all registered end-points with the given link and remove it from list of known links. More...
 
HF::Transport::Linkfind (uint16_t address)
 Find the link used to send messages to the HAN-FUN device with the given address. More...
 
- Public Member Functions inherited from HF::Transport::AbstractLayer
void add (HF::Transport::Endpoint *ep)
 Add an entry to the list of end-points connected to the transport layer. More...
 
void remove (HF::Transport::Endpoint *ep=nullptr)
 Remove the entry in ep, from the list of end-points connected to the transport layer. More...
 
void receive (HF::Transport::Link *link, HF::Common::ByteArray &payload)
 Receive the data in payload, coming in in the given link and deliver the decoded packet to all registered end-points. More...
 
const HF::UID::UID uid () const
 Return the UID of the local device on this transport layer. More...
 
void uid (HF::UID::UID_T *_uid)
 Set the UID to the given value. More...
 
void connected (HF::Transport::Link *link)
 Call the connected method for all the registered end-points with the given link as argument. More...
 
void disconnected (HF::Transport::Link *link)
 Call the disconnected method for all the registered end-points with the given link as argument. More...
 
Commands

Protected Attributes

uv_tcp_t socket
 libuv tcp/ip socket. More...
 
- Protected Attributes inherited from HF::Devices::Concentrator::Transport
Common::SimpleList< HF::Transport::Link * > links
 List of links present in the transport layer.
 
- Protected Attributes inherited from HF::Transport::AbstractLayer
Common::SimpleList< HF::Transport::Endpoint * > endpoints
 List of registered end-points for this layer.
 
HF::UID::UID_T_uid
 UID associated with the local transport layer.
 

Detailed Description

Transport Layer implementation over TCP/IP using libuv.

Definition at line 41 of file apps/transport.h.

Field Documentation

◆ socket

uv_tcp_t HF::Application::Transport::socket
protected

libuv tcp/ip socket.

Definition at line 45 of file apps/transport.h.

Referenced by initialize().


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