示例#1
0
        private static void OnClientAccepted(Socket socket)
        {
            KartClient client = new KartClient(socket);

            Log.Inform("Accepted connection from {0}.", client.Label);

            Server.AddClient(client);
        }
示例#2
0
 public static void RemoveClient(KartClient client)
 {
     Server._clients.Remove(client);
 }
示例#3
0
 public static void AddClient(KartClient client)
 {
     Server._clients.Add(client);
 }