test c++ code

1
2
3
4
5
6
7
8
HttpProxy::HttpProxy( asio::io_service& io, const std::string& host, short port )
{
std::cout << "proxy endpoint: " << host << ":" << port << std::endl;
asio::ipv4::host_resolver hr(io);
asio::ipv4::host h;
hr.by_name( h, host );
m_proxyendpoint = asio::ipv4::tcp::endpoint(port, h.address(0));
}