HiveMind
Public Member Functions | Private Attributes | List of all members
TCPClientWrapper Class Reference

A TCP client wrapper that is as a common socket between platforms. More...

#include <TCPClientWrapper.h>

Inheritance diagram for TCPClientWrapper:
Inheritance graph
Collaboration diagram for TCPClientWrapper:
Collaboration graph

Public Member Functions

 TCPClientWrapper (ITCPClient &client)
 
 ~TCPClientWrapper () override
 
bool receive (uint8_t *data, uint16_t length) override
 
bool send (const uint8_t *data, uint16_t length) override
 
bool isConnected () const override
 
bool close () override
 

Private Attributes

ITCPClientm_client
 

Detailed Description

A TCP client wrapper that is as a common socket between platforms.

Constructor & Destructor Documentation

◆ TCPClientWrapper()

TCPClientWrapper::TCPClientWrapper ( ITCPClient client)
inline

◆ ~TCPClientWrapper()

TCPClientWrapper::~TCPClientWrapper ( )
inlineoverride
Here is the call graph for this function:

Member Function Documentation

◆ close()

bool TCPClientWrapper::close ( )
inlineoverride
Here is the caller graph for this function:

◆ isConnected()

bool TCPClientWrapper::isConnected ( ) const
inlineoverride

◆ receive()

bool TCPClientWrapper::receive ( uint8_t *  data,
uint16_t  length 
)
inlineoverride

◆ send()

bool TCPClientWrapper::send ( const uint8_t *  data,
uint16_t  length 
)
inlineoverride

Member Data Documentation

◆ m_client

ITCPClient& TCPClientWrapper::m_client
private

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