O'Reilly logo

Boost.Asio C++ Network Programming by John Torjo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing proxies

A proxy usually sits between a client and a server. It takes a request from a client, might modify it, and forwards it to the server. It then takes the answer from the server, might modify it, and forwards it to the client.

Implementing proxies

What's special about a proxy, for our purposes, is that for each connection, you'll have two sockets, one to the client and the other to the server. This complicates implementing a proxy quite a bit.

Implementing the proxy as a synchronous application will be more complicated than to have it asynchronous; data could be coming from both ends (client and server) at the same time, and data might be going to both ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required