I need to create a local listener, almost something like a proxy in C++ on 127.0.0.1 with a predefined port ex. 1234. How would I approach this?
The application needs to listen for any data that gets passed to it from lets say Firefox (configured to proxy 127.0.0.1:1234) and forward that request to another location. Lets say if that request is www.google.com
than it redirects it to a local search engine.
I found something in C# and HttpListener but nothing in C++ on how I could achieve this functionality.
Thank you for all your help. Any feedback will be appreciated.