Samchon Framework for CPP  1.0.0
ServiceRole.cpp
1 #include <samchon/protocol/service/ServiceRole.hpp>
2 
3 #include <samchon/protocol/service/Service.hpp>
4 
5 using namespace std;
6 using namespace samchon;
7 using namespace samchon::protocol;
8 using namespace samchon::protocol::service;
9 
10 ServiceRole::ServiceRole(Service *service, const string &name)
11  : super()
12 {
13  this->service = service;
14  this->name = name;
15 }
16 void ServiceRole::sendData(shared_ptr<Invoke> invoke)
17 {
18  service->sendData(invoke);
19 }
Definition: RWMutex.hpp:4
Package of cloud service as a server.
Package of network protocol and libraries.
Definition: protocol.hpp:185
virtual void sendData(std::shared_ptr< Invoke >)
Shift the responsibility of sending an Invoke message to Client.
Definition: Service.cpp:40
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7