Go to the documentation of this file.
5 #include <condition_variable>
8 #include <netinet/in.h>
18 bool receive(uint8_t* data, uint16_t length)
override;
20 bool send(
const uint8_t* data, uint16_t length)
override;
37 #endif // __TCPCLIENT_H_
bool isConnected() const override
Tells if interface is connected and functionning.
Definition: TCPClient.cpp:21
bool receive(uint8_t *data, uint16_t length) override
Definition: TCPClient.cpp:9
const sockaddr_in m_address
Definition: TCPClient.h:33
ConnectionType
Definition: ICommInterface.h:6
ILogger & m_logger
Definition: TCPClient.h:31
~TCPClient() override=default
Definition: TCPClient.h:12
const int m_socketFd
Definition: TCPClient.h:32
friend void rxThread(TCPClient *context)
bool send(const uint8_t *data, uint16_t length) override
Definition: TCPClient.cpp:15
A logger class with basic logging capabilities.
Definition: ILogger.h:35
bool close()
Definition: TCPClient.cpp:23
Definition: ICommInterface.h:8
TCPClient(int socket, sockaddr_in address, ILogger &logger)
Definition: TCPClient.cpp:6
ConnectionType getType() const override
Tells the type of the connection interface.
Definition: TCPClient.cpp:30
bool m_connected
Definition: TCPClient.h:34