This is simple realization of socks5 proxy server according to the RFC 1928 using boost::asio
library. The server uses async socket calls for data forwarding and io_service for message processing. Currently, this socks5 proxy server works only in NO AUTHENTICATION REQUIRED
mode.
build tools:
g++ or clang++ and cmake+ninja
On *nix OS just run ./build.sh
example app & lib/include file will be installed in $PWD/dist dir
in one screen window start socks5 proxy server
dist/bin/s5
or show trace log like this
LOG=trace dist/bin/s5
in another window, test it via curl
curl -x socks5h:https://127.0.0.1:1080 baidu.com