1 #include <samchon/protocol/ServerConnector.hpp> 3 #include <boost/asio.hpp> 10 using namespace boost;
21 ServerConnector::~ServerConnector()
35 std::string &ip =
getIP();
47 localEndPoint =
new tcp::endpoint(address::from_string(myIP), NULL);
boost::asio::io_service * ioService
An io_service of Boost.Asio's own.
Package of network protocol and libraries.
An interface for a client.
virtual auto getMyIP() const -> std::string
(optional) My IP, if you want to bind
ServerConnector()
Default Constructor.
Socket * socket
Socket for network I/O.
EndPoint * endPoint
An endpoint directing a server.
virtual auto getIP() const -> std::string=0
Destinatio IP.
EndPoint * localEndPoint
(Optional) An local endpoint of the client (my system)
virtual void connect()
Connect to a server.
Top level namespace of products built from samchon.
virtual auto getPort() const -> int=0
Destination port.