22 #ifndef REGILO_SOCKETCONTROLLER_HPP 23 #define REGILO_SOCKETCONTROLLER_HPP 25 #include <boost/asio/ip/tcp.hpp> 27 #include "controller.hpp" 31 namespace bai = ba::ip;
50 virtual void connect(
const std::string& endpoint)
override;
57 void connect(
const std::string& ip,
unsigned short port);
63 void connect(
const bai::tcp::endpoint& endpoint);
70 #endif // REGILO_SOCKETCONTROLLER_HPP Definition: controller.hpp:35
StreamController()
Default constructor.
Definition: controller.hpp:206
virtual void connect(const std::string &endpoint) override
Connect the controller to a device.
virtual ~SocketController()
Default destructor.
The SocketController class is used to communicate with a device using a TCP socket.
Definition: socketcontroller.hpp:36
virtual std::string getEndpoint() const override
Get the endpoint of device.
The StreamController class is used to communicate with a device.
Definition: controller.hpp:98