My game will have a predetermined set of 48 players that will play in a game, including the host. From one of the networking examples, I'm doing something like this:
# Default game port
const DEFAULT_PORT = 10567
# Max number of peers
const MAX_PEERS = 47
var host = NetworkedMultiplayerENet.new()
However, if someone were to make 47 connections to the game host, all the connections would be used up, and none of the predetermined players could join the game. Or, if all the players were connected but one player errored but didn't timeout, they couldn't reconnect until they timed out.
Once a player connects they authenticate. I could increase the MAX_PEERS to say 96, then timestamp connections, and expire/disconnect them if they don't authenticate in time.
Any ideas on what I should do?