Class TCPConnection
- Defined in File tcp_connection.hpp 
Class Documentation
- 
class TCPConnection
- Public Functions - 
TCPConnection(const char *server_addr, const int server_port, std::function<void(const std::vector<std::uint8_t>&)> data_received_callback, std::function<void(const char *server_addr, const int server_port)> connection_lost_callback)
 - 
bool sendByte(std::uint8_t data)
 - 
bool sendBytes(const std::vector<std::uint8_t> &data)
 - 
void closeConnection()
 - 
~TCPConnection()
 - 
TCPConnection(const TCPConnection&) = delete
 - 
TCPConnection &operator=(const TCPConnection&) = delete
 - 
TCPConnection &operator=(TCPConnection &&from)
 
- 
TCPConnection(const char *server_addr, const int server_port, std::function<void(const std::vector<std::uint8_t>&)> data_received_callback, std::function<void(const char *server_addr, const int server_port)> connection_lost_callback)