Samchon Framework for CPP  1.0.0
samchon::protocol::IProtocol Class Referenceabstract

#include <IProtocol.hpp>

Public Member Functions

virtual void replyData (std::shared_ptr< Invoke >)=0
virtual void sendData (std::shared_ptr< Invoke >)=0

Detailed Description

An interface for 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 Pattern with those network drivers.

Implements IProtocol if the class sends and handles Invoke messages. Looking around source codes of the Samchon Framework, especially Templates, you can find out that all the classes and modules handling Invoke messages are always implementing this IProtocol.

Basic Components
See also
Jeongho Nam

Definition at line 26 of file IProtocol.hpp.

Member Function Documentation

virtual void samchon::protocol::IProtocol::replyData ( std::shared_ptr< Invoke )
pure virtual

Handling replied message.

Handles a replied Invoke message or shifts the responsibility to chain.

invokeAn Invoke message has received.

Implemented in samchon::protocol::Communicator.

Referenced by samchon::example::interaction::ChiefDriver::ChiefDriver(), samchon::example::interaction::MasterDriver::MasterDriver(), and samchon::protocol::Communicator::replyData().

Here is the caller graph for this function:

virtual void samchon::protocol::IProtocol::sendData ( std::shared_ptr< Invoke )
pure virtual

Send message.

Sends an Invoke message to related system or shifts the responsibility to chain.

invokeInvoke message to send

Implemented in samchon::protocol::Communicator, and samchon::protocol::WebCommunicator.

The documentation for this class was generated from the following file: