What i need is a program that can sit and wait for a connection to it, then when one is made it connects to another machine and works as a proxy. Im not lazy and i dont want a program to do this for any "particular" purpose. Well i do but I also want to learn network stuff in C and was wondering if the people of this forum would help me with it.
(I find my writeing has been a bit better since i washed my keybored to!)
Anyways just to be a bit more specific...
| Client | >> | forwarding machine | >> | Other Machine |
Basicly i want a program that will forward data on (any given port) to the "Other Machine" and no i dont want to use iptables this is for learning purposes mainly. Keep note that a simple script using nc wont work either as "Other Machine" must talk back to the "Client" machine.
And you dont have to write the whole thing but a couple of examples wont hurt because i find thats the best way i learn. I looked at some socket man pages and soforth but usually Voidmain and everyone else is much better then this documentation.
Anyways thanks in advance.


