Samchon Framework for CPP  1.0.0
ServiceKeeper.cpp
1 #include <samchon/protocol/service/ServiceKeeper.hpp>
2 # include <samchon/protocol/service/User.hpp>
3 # include <samchon/protocol/service/Client.hpp>
4 
5 using namespace samchon::protocol;
6 using namespace samchon::protocol::service;
7 
8 ServiceKeeper::ServiceKeeper(const User *user, const Client *client)
9 {
10  this->user.reset(user);
11  this->client.reset(client);
12 }
14 {
15  this->user.reset(pair.user.get());
16  this->client.reset(pair.client.get());
17 }
19 {
20  this->user.reset( pair.user.get() );
21  this->client.reset( pair.client.get() );
22 }
SmartPointer< User > user
A shared pionter of an User.
User containing Client(s) with session-id.
Definition: User.hpp:56
ServiceKeeper(const User *user, const Client *client)
Construct from User and Client.
Package of cloud service as a server.
Package of network protocol and libraries.
Definition: protocol.hpp:185
A network boundary with the client in an User.
Definition: Client.hpp:46
SmartPointer< Client > client
A shared pointer of a Client.
A keeper blocking destrunction of User and Client.