Samchon Framework for CPP
1.0.0
|
#include <MediatorWebServer.hpp>
Public Member Functions | |
MediatorWebServer (external::base::ExternalSystemArrayBase *system_array, int port) | |
![]() | |
MediatorServer (external::base::ExternalSystemArrayBase *system_array, int port) | |
virtual void | start () override |
![]() | |
MediatorSystem (external::base::ExternalSystemArrayBase *systemArray) | |
virtual | ~MediatorSystem ()=default |
template<class SystemArray > | |
auto | getSystemArray () const -> SystemArray * |
![]() | |
virtual void | replyData (std::shared_ptr< Invoke >)=0 |
virtual void | sendData (std::shared_ptr< Invoke >)=0 |
![]() | |
Server () | |
virtual | ~Server () |
virtual void | open (int port) |
virtual void | close () |
![]() | |
WebServer () | |
Additional Inherited Members | |
![]() | |
virtual void | addClient (std::shared_ptr< ClientDriver >)=0 |
A mediator server, driver for the master client.
The MediatorWebServer is a class opening a server accepting the master client, following the web-socket protocol.
A mediator, the master driver.
The MediatorSystem is an abstract class helping ParallelSystemArrayMediator can be a slave system. The MediatorSystem interacts and communicates with the master system as a role of slave.
This MediatorSystem object is created in ParallelSystemArrayMediator.createMediator. Override the method and return one of them, which are derived from this MediatorSystem class, considering which type and protocol the master system follows:
When the master orders a parallel process to this slave, then the MediatorSystem delivers the parallel process to its parent ParallelSystemArrayMediator object. The ParallelSystemArrayMediator object distributes the parallel process to its slaves system, ParallelSystem objects. When the parallel process has completed, then MediatorSystem reports the result to its master.
Templates - Parallel System, Distributed System
Definition at line 22 of file MediatorWebServer.hpp.
|
inline |
Initializer Constructor.
systemArray | The parent ParallelSystemArrayMediator object. |
port | Port number of server to open. |
Definition at line 36 of file MediatorWebServer.hpp.