RMW desert 1.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
TcpDaemon Class Reference

Public Member Functions

bool init (int port)
 Initialize the socket communication.
 

Static Public Member Functions

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.
 

Member Function Documentation

◆ 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
packetThe 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
portThe 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: