I am currently starting work on a server application and am wondering as to the best way to store the information associated with each client connection (socket) such as nick, ip, description and any other data which i might need to store.
At first i thought about creating a simple class to store this data and then creating a new instance of the class on the heap for each connection and adding the pointer to a CPtrList like class but my app does not (and hopefully will not have to) use MFC and I'm unaware of any other way of doing this without the the help of MFC.
Any other ways anyone can suggest as to the best way to store information about currently connected users which is as fast as possible and uses as little memory as possible would be greatly appreciated. I need a method which can easily support 500+ concurrent users.
Any help or suggestions would be very helpful. Many thanks in advance,
Daniel