public ServerManger()
        {
            instances = this;
            new LogManger(new LogClass(), AppDomain.CurrentDomain.BaseDirectory, "log.txt");

            ToolClass.GetDataPack    = GetPack;
            ToolClass.msgArrLen      = 10240000;
            ToolClass.SendHeaderPack = false;
            bc = new TcpServer(new socketEvent());
            bc.InitServer("0.0.0.0", 55555);
        }
示例#2
0
        public MainWindow()
        {
            instances = this;
            //new LogManger(new LogClass(),)
            this.Closed += CloseEvent;
            InitializeComponent();

            server = new ServerManger();

            rushNumber.LostFocus += RushNumber_LostFocus;
            RushNumber            = 100;
            rushNumber.Text       = RushNumber.ToString();

            thread = new Thread(ThreadFunction);
            thread.IsBackground = true;
            thread.Start();
        }