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

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

#include <transport.h>

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

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...
 

Protected Attributes

Transporttsp
 Transport layer for this link. More...
 
uv_stream_s * stream
 libuv stream to send/receive messages. More...
 

Detailed Description

Transport Layer link implementation over TCP/IP using libuv.

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

Constructor & Destructor Documentation

◆ Link()

HF::Application::Link::Link ( Transport _tsp,
uv_stream_s *  stream 
)
inline

Constructor.

Parameters
_tsppointer to the transport layer.
streampointer to the libuv stream.

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

References stream.

75  :
77  {
78  stream->data = this;
79  }

Field Documentation

◆ stream

uv_stream_s* HF::Application::Link::stream
protected

libuv stream to send/receive messages.

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

Referenced by Link().

◆ tsp

Transport* HF::Application::Link::tsp
protected

Transport layer for this link.

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


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