Class IpClient

Inheritance Relationships

Derived Types

Class Documentation

class IpClient

Subclassed by network::PcapTcpClient, network::TcpClient, network::UdpClient

Public Types

using Buffer = std::array<uint8_t, MAX_BUF_SIZE>

Public Functions

inline IpClient(std::string ip_address, unsigned int port)
virtual ~IpClient() = default
virtual util::Status open() = 0
virtual int receive() = 0
inline const Buffer &getBuffer() const

Public Static Attributes

static constexpr size_t MAX_BUF_SIZE = 1024 * 16

Protected Attributes

std::string ip_address_
unsigned int port_
Buffer payload_buffer_ = {}