Network proxy in 20 lines

Authentication, load balancing… You need a proxy ? Let’s do it in an idiomatic way.
It’s surprisingly easy ! …


We need to handle 2 connections : the User and the Server. Story :
1- The User connects to the Proxy
2- The Proxy connects to the Server
3- The Proxy sent messages from the Client to the Server, and from the Server to the Client (transparently) We don’t speak about the specific treatment of the proxy (authentication, load balancing …) you wish to do.…
Read more