2 #include <samchon/API.hpp> 4 #include <samchon/protocol/IListener.hpp> 6 #include <samchon/protocol/Communicator.hpp> 7 #include <samchon/templates/slave/PInvoke.hpp> 16 :
public virtual protocol::IListener
19 std::shared_ptr<protocol::Communicator> communicator_;
28 virtual ~SlaveSystem() =
default;
33 void sendData(std::shared_ptr<protocol::Invoke> invoke)
override 35 communicator_->sendData(invoke);
39 virtual void _Reply_data(std::shared_ptr<protocol::Invoke> invoke)
override 41 if (invoke->has(
"_History_uid"))
43 std::thread([
this, invoke]()
46 std::shared_ptr<InvokeHistory> history(
new InvokeHistory(invoke));
47 invoke->erase(
"_History_uid");
48 invoke->erase(
"_Process_name");
49 invoke->erase(
"_Process_weight");
52 std::shared_ptr<PInvoke> pInvoke(
new PInvoke(invoke, history,
this));
56 if (pInvoke->isHold() ==
false)
virtual void replyData(std::shared_ptr< Invoke >)=0
virtual void sendData(std::shared_ptr< Invoke >)=0