Example #1
0
        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)
                {

                }
            }
        }
Example #2
0
 public void AddRace(Client c)
 {
     races.Add(c);
 }
Example #3
0
 public void RemoveClient(Client client)
 {
     if (clients.Contains(client))
     {
         clients.Remove(client);
     }
 }