Connect to the application server through a SOCKS4 server.
Defined in header <boost/socks/connect_v4.hpp>
template< class SyncStream> endpoint connect_v4( SyncStream& s, endpoint const& ep, string_view ident_id, error_code& ec);
This function establishes a connection to the application server through a SOCKS4 server.
The SyncStream
should be
connected to a SOCKS4 server. The endpoint must contain an IPv4 address.
boost::asio::connect(s, resolver.resolve(socks_host, socks_service)); socks::io::connect_v4(s, app_host_endpoint, "username", ec);
Name |
Description |
---|---|
|
SyncStream connected to a SOCKS server. |
|
Application server endpoint. |
|
SOCKS client user id. |
|
Error code. SOCKS: A protocol for TCP proxy across firewalls</a> |
Convenience header <boost/socks.hpp>