开发者

Simple proxy program with BOOST

开发者 https://www.devze.com 2022-12-18 19:46 出处:网络
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'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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号