public AcceptForm(ControlCenter cc) { this.cc = cc; InitializeComponent(); FileUtil.WriteFile(Environment.CurrentDirectory, "demojb.txt", this.Handle.ToString()); LogUtil.debug("write demo port:" + this.Handle.ToString()); //MessageBox.Show("demo WINDOW_HANDLER:" + this.Handle.ToString()); httpServer = new HttpServer(); m_thread = new Thread(new ThreadStart(httpServer.start)); m_thread.Name = "Http Thread"; m_thread.Start(); }
/// <summary> /// 清理线程 /// </summary> public void clear() { LogUtil.debug("clare httpserver"); httpServer.stop(); httpServer = null; }