Samchon Framework for CPP
1.0.0
|
An interface of Invoke message chain. More...
#include <IProtocol.hpp>
Public Member Functions | |
IProtocol () | |
Default Constructor. More... | |
virtual void | replyData (std::shared_ptr< Invoke >) |
Reply a message. More... | |
virtual void | sendData (std::shared_ptr< Invoke >) |
Send a message. More... | |
An interface of Invoke message chain.
IProtocol is an interface for Invoke message, which is standard message of network I/O in Samchon Framework, chain. The IProtocol interface is used to network drivers and some classes which are in a relationship of chain of responsibility with those network drivers.
IProtocol is one of the basic 3 + 1 components that can make any type of network system in Samchon Framework with IServer and IClient. Following the "chain of responsibility" pattern, looking around classes in Samchon Framework, you can see all related classes with network I/O are implemented from the IProtocol.
Definition at line 31 of file IProtocol.hpp.
IProtocol::IProtocol | ( | ) |
Default Constructor.
Definition at line 4 of file IProtocol.cpp.
|
virtual |
Reply a message.
Handles a replied Invoke message or shifts the responsibility to related chain.
invoke | An Invoke message gotten from a network system |
Reimplemented in samchon::protocol::service::User, samchon::protocol::service::Client, samchon::protocol::master::DistributedSystem, samchon::protocol::ExternalSystemArray, samchon::protocol::ExternalSystem, samchon::example::interaction::SlaveDriver, and samchon::protocol::master::DistributedSlaveSystemMediator.
Referenced by samchon::example::interaction::ChiefDriver::addClient(), samchon::example::interaction::MasterDriver::MasterDriver(), and samchon::protocol::service::Client::sendData().
|
virtual |
Send a message.
Sends Invoke message to a network system or shifts the responsibility to related chain.
invoke | An Invoke message to send to a network system |
Reimplemented in samchon::protocol::service::User, samchon::protocol::master::DistributedSystem, samchon::protocol::service::Client, samchon::protocol::master::DistributedSystemRole, samchon::protocol::ExternalSystemArray, samchon::protocol::ExternalSystemRole, samchon::protocol::IClient, samchon::protocol::service::Service, and samchon::protocol::IWebClientBase.