Samchon Framework for CPP
1.0.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
SlaveSystem.cpp
1
#include <samchon/protocol/slave/SlaveSystem.hpp>
2
3
#include <samchon/protocol/Invoke.hpp>
4
#include <samchon/protocol/InvokeHistory.hpp>
5
#include <thread>
6
7
using namespace
std
;
8
using namespace
samchon::library
;
9
using namespace
samchon::protocol
;
10
using namespace
samchon::protocol::slave
;
11
12
SlaveSystem::SlaveSystem()
13
:
super
()
14
{
15
}
16
void
SlaveSystem::_replyData
(shared_ptr<Invoke> invoke)
17
{
18
if
(invoke->has(
"invoke_history_uid"
) ==
true
)
19
{
20
thread
21
(
22
[
this
, invoke]
23
{
24
InvokeHistory
history(invoke);
25
26
replyData
(invoke);
27
28
history.
notifyEnd
();
29
sendData
(history.
toInvoke
());
30
}
31
).detach();
32
}
33
else
34
replyData
(invoke);
35
}
samchon::protocol::slave
Package of external system, within the framework of slave.
Definition:
protocol_slave.hpp:20
std
Definition:
RWMutex.hpp:4
samchon::library
Package of libraries.
Definition:
library.hpp:84
samchon::protocol::InvokeHistory
A history of an Invoke message.
Definition:
InvokeHistory.hpp:35
samchon::protocol::IClient::sendData
virtual void sendData(std::shared_ptr< Invoke >)
Sends message to a related system.
Definition:
IClient.cpp:309
samchon::protocol::ExternalSystem::replyData
virtual void replyData(std::shared_ptr< Invoke >) override
Handling replied message from an external system.
Definition:
ExternalSystem.cpp:41
samchon::protocol::EntityGroup
An Entity and a container of children Entity objects.
Definition:
EntityGroup.hpp:52
samchon::protocol
Package of network protocol and libraries.
Definition:
protocol.hpp:185
samchon::protocol::InvokeHistory::notifyEnd
virtual void notifyEnd()
Notify end of the process.
Definition:
InvokeHistory.cpp:56
samchon::protocol::InvokeHistory::toInvoke
auto toInvoke() const -> std::shared_ptr< Invoke >
Get an Invoke message.
Definition:
InvokeHistory.cpp:110
samchon::protocol::slave::SlaveSystem::_replyData
virtual void _replyData(std::shared_ptr< Invoke >) override
Pre-processor for reporting elapsed time.
Definition:
SlaveSystem.cpp:16
cpp
samchon
protocol
slave
SlaveSystem.cpp
Generated by
1.8.11