Is anyone aware of a way to do this?
I considered adding a while statement to the listening loop of the server to evaluate if an integer is >= a certain value, and if so to enter another loop until it's not true, and that would allow the server to accept more connections. The server would increment or decrement the integer each time a connection is opened/closed. Seems a little heavy though. Is there a method built into Sockets that can allow me to set a maximum number of connections?
Any suggestions would be greatly appreciated.