![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
Transport Layer link implementation over TCP/IP using libuv. More...
#include <transport.h>
Public Member Functions | |
Link (Transport *_tsp, uv_stream_s *stream) | |
Constructor. More... | |
void | send (HF::Common::ByteArray &array) |
Send the data in the given ByteArray using the link to the remote end-point. More... | |
![]() | |
uint16_t | address () const |
Get the address of the device this link corresponds to. More... | |
void | address (uint16_t addr) |
Set the address of this link corresponds to. More... | |
const HF::UID::UID | uid () const |
Return the end-point UID associated with this link. More... | |
Protected Attributes | |
Transport * | tsp |
Transport layer for this link. More... | |
uv_stream_s * | stream |
libuv stream to send/receive messages. More... | |
![]() | |
HF::UID::UID_T * | _uid |
UID associated with this link. | |
uint16_t | _address |
HAN-FUN address associated with the remote end-point. | |
Transport Layer link implementation over TCP/IP using libuv.
Definition at line 59 of file apps/transport.h.
|
inline |
Constructor.
_tsp | pointer to the transport layer. |
stream | pointer to the libuv stream. |
Definition at line 75 of file apps/transport.h.
References stream.
|
protected |
libuv stream to send/receive messages.
Definition at line 65 of file apps/transport.h.
Referenced by Link().
|
protected |
Transport layer for this link.
Definition at line 63 of file apps/transport.h.