标签:style class blog c code java
哎,第一,我想说官网的教程尚需完善
第二:是我自己基础不好,所以费了点劲
就是这样:
tcp::endpoint end_p(boost::asio::ip::address_v4::from_string("127.0.0.1"), target_port); tcp::endpoint end_point(boost::asio::ip::address_v4::from_string("127.0.0.1"), 974); client_proxy_socket.open(end_point.protocol()); client_proxy_socket.bind(end_point); client_proxy_socket.connect(end_p); boost::asio::write(client_proxy_socket, req.header_to_buffers());
boost socket 最直接有效地设定ip和port的代码……,布布扣,bubuko.com
boost socket 最直接有效地设定ip和port的代码……
标签:style class blog c code java
原文地址:http://www.cnblogs.com/allen-tung/p/3737197.html