How to initialize boost::asio::tcp::endpoint from IPv4 address string
This code will initialize a boost::asio::tcp::endpoint
from a IPv4 address string ("127.0.0.1"
as an exmple) and a port number (443
in this example)
boost::asio::ip::tcp::endpoint ep(
boost::asio::ip::address::from_string("127.0.0.1"),
443
);