Currently, the server simply has a vector of clients that it keep hold of. Instead, it should have a ClientConnectionPool object that handles client connection start up, shut down, and command handling. Object pools do have a limited pool of resources, but it might be possible to dynamically increase / decrease the size.
Currently, the server simply has a vector of clients that it keep hold of. Instead, it should have a ClientConnectionPool object that handles client connection start up, shut down, and command handling. Object pools do have a limited pool of resources, but it might be possible to dynamically increase / decrease the size.
Object Pool