Hey Everyone,

I'm currently about to start work on a new project of mine and need a little help and some ideas. This is what I need...

1). Winsock based Application
2). Must allow multiple users
3). Must be able to open remote sockets for each user
(So a user can connect to my PC and get a webpage)
(So my pc gets the webpage for them, like a proxy).

Does anyone have some code for

a). Listening on multiple sockets
b). Opening multiple sockets for each user.

Here's some examples of what I'm working on...

user (a) connects to my PC and requests a webpage.
My pc opens 1 socket, gets the .html page, and sends it back to the user, then my pc opens 2 more sockets (for images) and passes them back to the user again.

user (b) connects to my pc and requests a chat.
My pc opens 1 socket, connects and acts as a gateway
between the chat server and user (b).

Just need some really good multi sockets code and I can do the rest. Please help someone

Any ideas/comments/info/questions are welcome