#include <TCPServer.h>
◆ TCPServer()
TCPServer::TCPServer |
( |
ILogger & |
logger | ) |
|
◆ ~TCPServer()
TCPServer::~TCPServer |
( |
| ) |
|
|
override |
◆ close()
void TCPServer::close |
( |
| ) |
|
◆ closeClient()
void TCPServer::closeClient |
( |
| ) |
|
|
private |
◆ getType()
Tells the type of the connection interface.
- Returns
- the type of connection
Implements ICommInterface.
◆ isConnected()
bool TCPServer::isConnected |
( |
| ) |
const |
|
overridevirtual |
Tells if interface is connected and functionning.
- Returns
- true if connected, false otherwise
Implements ICommInterface.
◆ listenTask()
void TCPServer::listenTask |
( |
void * |
param | ) |
|
|
staticprivate |
◆ openSocket()
bool TCPServer::openSocket |
( |
int |
port | ) |
|
opens the socket on a certain port
- Returns
- true if the socket could be opened, binded and then listen to the port, false if not
◆ receive()
bool TCPServer::receive |
( |
uint8_t * |
buffer, |
|
|
uint16_t |
length |
|
) |
| |
|
override |
◆ send()
bool TCPServer::send |
( |
const uint8_t * |
buffer, |
|
|
uint16_t |
length |
|
) |
| |
|
override |
◆ waitForClient()
void TCPServer::waitForClient |
( |
| ) |
|
|
private |
◆ m_addressLength
int TCPServer::m_addressLength {} |
|
private |
◆ m_clientFd
std::optional<int> TCPServer::m_clientFd |
|
private |
◆ m_connected
bool TCPServer::m_connected |
|
private |
◆ m_listenTask
◆ m_logger
◆ m_port
◆ m_serverFd
int TCPServer::m_serverFd {} |
|
private |
The documentation for this class was generated from the following files: