Exemple #1
0
        public static void Run()
        {
            RegisterEvent();

            server = new ServerProxy();
            server.Start();

            int count = 2;

            for (int i = 0; i < count; i++)
            {
                ClientProxy c = new ClientProxy();
                c.Start();
            }
        }
Exemple #2
0
 public static void OnClientConnect(ClientProxy client)
 {
     clientMap[client.local] = client;
 }
Exemple #3
0
 private static bool GetClient(string key, out ClientProxy clientProxy)
 {
     return(clientMap.TryGetValue(key, out clientProxy));
 }