2 #include <samchon/protocol/IServer.hpp> 3 #include <samchon/protocol/IClient.hpp> 5 #include <samchon/protocol/Invoke.hpp> 17 using namespace library;
18 using namespace protocol;
51 typedef IServer super;
80 this->master = master;
85 virtual void addClient(Socket *socket)
override 87 unique_lock<mutex> uk(mtx);
89 this->socket = socket;
93 virtual void replyData(shared_ptr<Invoke> invoke)
override 99 virtual auto PORT()
const ->
int override ChiefDriver(IProtocol *master, int port)
Construct from master and port number.
IProtocol * master
A Master object containing the ChiefDriver.
virtual void replyData(std::shared_ptr< Invoke >)=0
int port
A port number to open for the Chief system.
A boundary class interacting with a Chief system.
mutex mtx
A mutex for realizing 1:1 server.