Exemplo n.º 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)
                {

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