Class TcpClient

Inheritance Relationships

Base Type

Class Documentation

class TcpClient : public network::IpClient

A thin wrapper around a tcp socket

Public Functions

TcpClient() = delete
TcpClient(const std::string &ip_address, unsigned int port)
virtual util::Status open() override
util::Status close(boost::asio::socket_base::linger linger_option = boost::asio::socket_base::linger())
virtual int receive() override
util::Status send(std::vector<std::byte> data)
uint peekBytes()