/// <summary> /// Handles a newly created IonTcpConnection and performs some checks, before adding it to the connection collection and starting the client session. /// </summary> /// <param name="connection">The IonTcpConnection instance representing the new connection to handle.</param> public void HandleNewConnection(IonTcpConnection connection) { // TODO: check max simultaneous connections // TODO: check max simultaneous connections per IP // TODO: check project specific actions // INFO: client ID = connection ID, client ID = session ID // Add connection to collection mConnections.Add(connection.ID, connection); connection.Start(); //IonEnvironment.GetHabboHotel().GetClients().StartClient(connection.ID); }