1 #include <samchon/protocol/ExternalServer.hpp> 4 #include <samchon/library/XML.hpp> 13 ExternalServer::ExternalServer()
22 if(xml->hasProperty(
"myIP") ==
true)
23 this->
myIP = xml->getProperty(
"myIP");
58 if(
myIP.empty() ==
false)
59 xml->setProperty(
"myIP",
myIP);
int port
A port number of an external system.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the EntityGroup.
virtual void start() override
Start interaction.
std::string ip
An ip address of an external system.
Package of network protocol and libraries.
A network driver for an external system.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
virtual auto getIP() const -> std::string override
Destinatio IP.
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.
std::string myIP
A custom ip address of my system to bind.
virtual auto getPort() const -> int override
Destination port.
XML is a class representing xml object.
virtual void listen()
Listens message from a related system.
virtual void connect()
Connect to a server.
virtual auto getMyIP() const -> std::string override
(optional) My IP, if you want to bind
A server connector for a physical client.