8

How I can use a SOCKS proxy from my C++ socket program?

Marcelo Cantos
  • 181,030
  • 38
  • 327
  • 365
Emma
  • 231
  • 1
  • 4
  • 10

3 Answers3

6

Your question is a bit vague, but I'll try to answer it anyway.

If found these links that might help you:

Using the SOCKS RFC and the cited links, you might be able to create a SOCKS proxy.

I don't like posting links as an answer but since you don't clearly state what you want to achieve, I can't really be more accurate...

Community
  • 1
  • 1
ereOn
  • 53,676
  • 39
  • 161
  • 238
  • @Navin: Yet 4 people upvoted it and the OP accepted it. It may be useless to you and your particular problem though, in which case I encourage you to post your own specific question (with hopefuly more details than this one). – ereOn Jul 14 '15 at 19:46
  • I'm using boost's SOCKS client. I barked at your answer because it literally links socket libraries and the SOCKS RFC. I mean, if someone wanted to implement the RFC themselves, they wouldn't come here for links! – Navin Jul 14 '15 at 22:07
  • @Navin I was once given a similar answer and implemented a RFC myself. You may consider it useless because you would have liked a "copy-paste" type of answer. Fortunately, some people still want to understand what they do and how things work and reading a RFC can give many clues on how to best solve the problem. Also, if you are so dissatisfied by my answer, why don't you give a better one ? I'd be happy to upvote it. – ereOn Jul 15 '15 at 13:22
  • fair enough, removed my downvote. – Navin Jul 16 '15 at 04:36
2

Here, use the socks wrapper from code project: http://www.codeproject.com/KB/IP/Socks.aspx

Josh Davis
  • 28,400
  • 5
  • 52
  • 67
0xDEAD BEEF
  • 2,074
  • 7
  • 31
  • 46
  • 12
    You don't need to sign your answers, especially when you have a nickname that can be confusing in a C++ answer ! I spent 5 seconds to figure out what was "0xDEAD BEEF" doing here until i realized it was your nickname ;) – ereOn May 11 '10 at 09:56
1

http://www.codeproject.com/KB/IP/Socks.aspx - Socks Wrapper

DVK
  • 126,886
  • 32
  • 213
  • 327