【发布时间】:2011-03-06 00:24:52
【问题描述】:
对 boost 和 asio 还很陌生,需要帮助:
连接到代理
asio::ip::tcp::socket socket_;发送 CONNECT 主机:ssl 服务器到代理
receive response 200-
asio::ssl::context ctx(io_service, asio::ssl::context::sslv23);sslsocket_(socket_,context) 尝试握手
sslsocket_.async_handshake(asio::ssl::stream_base::client, boost::bind(&client::handle_handshake, this, asio::placeholders::error));并得到 asio.ssl 错误
Wireshark: host sends FIN after 1st message of handshake
到 ssl 服务器的直接异步连接工作正常,通过 Proxifier 也是如此
【问题讨论】:
标签: c++ boost ssl tcp boost-asio