示例#1
0
 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();
 }
示例#2
0
 /// <summary>
 /// 清理线程
 /// </summary>
 public void clear()
 {
     LogUtil.debug("clare httpserver");
     httpServer.stop();
     httpServer = null;
 }