RLuceac
RLuceac

Reputation: 382

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.

Upvotes: 1

Views: 644

Answers (1)

Tobu
Tobu

Reputation: 25436

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

Upvotes: 1

Related Questions