private void ServerRunning() { DisplayOnScreen("Accepting clients!"); while (true) { try { Client client = new Client(server.AcceptTcpClient(), this); this.clients.Add(client); DisplayOnScreen("New client added!"); } catch (Exception e) { } } }
public void AddRace(Client c) { races.Add(c); }
public void RemoveClient(Client client) { if (clients.Contains(client)) { clients.Remove(client); } }