title: How to create a basic TCP connection via socks proxy in c++/c?
body: <p>I'm looking for a library to add a socks proxy option to a C/C++ program.
  What libraries are available for unix and what is the best way to achieve this?</p>
  
  <p>The solution should:</p>
  
  <ul>
  <li>be considered best practice (safe)</li>
  <li>work in multi-threaded programs with short single-threaded connections</li>
  <li>easy to implement / maintain (if possible)</li>
  <li>work for unix (linux/debian/ubuntu)</li>
  </ul>
  
  <p>Found a lot of information on the internet but nothing specific, and don't know what to use or when to use it.</p>