look bud I'm not the one asking the retarded questions
How do I connect to a SOCKS proxy from C++?
Cameron Lee
Dominic Nelson
SOCKS5 is piss easy and Tor's proxy doesn't need the authentication parts. Just implement it from the spec, I recently did the same thing.
Adrian Jones
Use libcurl.
- set CURLOPT_PROXY and CURLOPT_PROXYPORT to your Tor host and port (e.g. "127.0.0.1" and 9150 if you use unmodified TorBrowser as a proxy)
- set CURLOPT_PROXYTYPE to CURLPROXY_SOCKS5_HOSTNAME. This will let the proxy resolve hostnames (domains), hence prevent DNS leaks.
If you want to use Python instead then use pycurl with same curl opts.
Hudson Bailey
hot
Isaiah Brown
Then use cython if you're that autistic.