How to make TOR configured application?

I found a code which should work, but it doesn't for me on Visual Studio 2017. It returns me "Error" (return(-1);) and some weird symbol after. Maybe for somebody else this code worked? https://gist.github.com/anhldbk/f62fbe5e5a0e48740c6959e3e0907c81
Last edited on
Well it isn't that hard to do some error checks and find out the error from WSAGetLastError(). You may need to check the return of every function used and check the documentation a lot. If you don't like googling the error number you can use FormatMessageA/W which you can figure out. You probably also read the comment to initialize WSA right?
Yes, I added it, you can check the last comment, it's mine
Last edited on
Yes I tested it, this code is trash. Look somewhere else.
Thanks for the heads-up, salem c.
Registered users can post here. Sign in or register to post.