|
bool | init (int port) |
| Initialize the socket communication.
|
|
|
static std::vector< uint8_t > | read_packet () |
| Read a packet from the _rx_packets member as vector of bytes.
|
|
static void | enqueue_packet (std::vector< uint8_t > packet) |
| Enqueue a packet in the _tx_packets member as vector of bytes.
|
|
◆ enqueue_packet()
void TcpDaemon::enqueue_packet |
( |
std::vector< uint8_t > |
packet | ) |
|
|
static |
Enqueue a packet in the _tx_packets member as vector of bytes.
This function is used by the various TxStream instances contained in publishers, clients and services.
- Parameters
-
packet | The packet that has to be sent through the DESERT stack |
◆ init()
bool TcpDaemon::init |
( |
int |
port | ) |
|
Initialize the socket communication.
This function allows the middleware to estabilish a connection to the DESERT stack through a TCP socket.
- Parameters
-
port | The TCP port of the DESERT application layer |
◆ read_packet()
std::vector< uint8_t > TcpDaemon::read_packet |
( |
| ) |
|
|
static |
Read a packet from the _rx_packets member as vector of bytes.
This function is used by the various RxStream instances contained in subscribers, clients and services.
- Returns
- The packet that was read from the DESERT stack
The documentation for this class was generated from the following files:
- src/desert_classes/TcpDaemon.h
- src/desert_classes/TcpDaemon.cpp