tdaq-develop-2025-02-12
ots::TCPPacket Class Reference

Public Member Functions

bool decode (std::string &message)
 
void reset (void)
 Resets the storage buffer.
 
bool isEmpty (void)
 
TCPPacketoperator+= (const std::string &buffer)
 Operator overload.
 

Static Public Member Functions

static std::string encode (char const *message, std::size_t length)
 
static std::string encode (const std::string &message)
 

Friends

std::ostream & operator<< (std::ostream &out, const TCPPacket &packet)
 

Detailed Description

Definition at line 9 of file TCPPacket.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const TCPPacket packet 
)
friend

< return std::ostream so we can chain calls to operator<<

Definition at line 30 of file TCPPacket.h.


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