Esempio n. 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();
            }
        }
Esempio n. 2
0
 public static void OnClientConnect(ClientProxy client)
 {
     clientMap[client.local] = client;
 }
Esempio n. 3
0
 private static bool GetClient(string key, out ClientProxy clientProxy)
 {
     return(clientMap.TryGetValue(key, out clientProxy));
 }