Simple proxy program with BOOST
I'm trying to do a very simple program. It's actually a proxy, that I need to connect to it and that proxy fowards the packets to the outter world.
I think of making a list of incomming packets, change the incomming port to a new port, forward the packet and wait for a response, and get the port number for the packet from my list and send it back to my app...
How can I do that with boost??? 开发者_运维百科I don't need the complete source code, just some code and the directions to start...(althought the full code will be usefull hehehe)...
Thx.
You're in over your head, have you considered not coding it? Use socat:
socat TCP-LISTEN:7656,bind=internal-ip,fork TCP:external-host:7656
精彩评论