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