2 #include <samchon/API.hpp> 4 #include <samchon/templates/slave/SlaveSystem.hpp> 10 class ServerConnector;
18 :
public virtual SlaveSystem
28 virtual ~SlaveClient() =
default;
31 virtual auto createServerConnector() -> protocol::ServerConnector*
33 return new protocol::ServerConnector(
this);
40 void connect(
const std::string &ip,
int port)
42 std::shared_ptr<protocol::ServerConnector> connector(createServerConnector());
43 this->communicator_ = connector;
45 connector->connect(ip, port);