Simple Socks Proxy code? (Arduino + Ethernet module) [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_如何学编程Closed 7 years ago.
Improve this questionFor a new project, i had a strange idea of using an Arduino with a Wiznet W5100 Ethernet module for routing/proxying http data.
The module supports only 4 connections, and i am unsure if this will be enough; The available space in arduino (flash/ram) is also of concern.
I can't seem to find any code for an ultra-simple socks4a proxy (c/c++/java/php) so that i can verify the hardware will meet the requirements.
Any linkage or pseudo-code may help.
Update:
Found a simple c++ implementation, and will study this. I believe if just using CONNECT and not BIND, it should fit the requirements.
I found some concise SOCKS (version 5) proxy server code in C++ here. It's one file.
Also, the TorCap2 proxifier code has SOCKS 4a code you can check out in DLL/TorCap2Dll.c which is fairly small and would be re-usable.
精彩评论