/// <summary> /// 逻辑线程 /// </summary> private void LogicThraed() { _server = new UdpServer(); _server.onReceiveData += OnReceiveData; _server.Bind(1875, 4096); Log.CI(ConsoleColor.DarkGreen, "Logic Thread Start"); int delay = 10; while (true) { _server.Refresh(); Thread.Sleep(delay); } }