Samchon Framework for CPP  1.0.0
ParallelServer.cpp
1 #include <samchon/protocol/master/ParallelServer.hpp>
2 
3 using namespace std;
4 using namespace samchon::library;
5 using namespace samchon::protocol;
6 using namespace samchon::protocol::master;
7 
8 ParallelServer::ParallelServer()
9  : super(),
11 {
12 }
13 
14 void ParallelServer::construct(shared_ptr<XML> xml)
15 {
16  super::construct(xml);
17 
18  if(xml->hasProperty("myIP") == true)
19  this->myIP = xml->getProperty("myIP");
20  else
21  this->myIP.clear();
22 }
23 
24 auto ParallelServer::toXML() const -> shared_ptr<XML>
25 {
26  shared_ptr<XML> &xml = super::toXML();
27 
28  if(myIP.empty() == false)
29  xml->setProperty("myIP", myIP);
30 
31  return xml;
32 }
A network driver for an external server.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the EntityGroup.
Package for external system, within the framework of master.
Definition: RWMutex.hpp:4
Package of libraries.
Definition: library.hpp:84
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
Package of network protocol and libraries.
Definition: protocol.hpp:185
A network driver for an external system.
std::string myIP
A custom ip address of my system to bind.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the EntityGroup.
XML is a class representing xml object.
Definition: XML.hpp:72