예제 #1
0
        private void Server_Load(object sender, EventArgs e)
        {
            serverSocket = new TcpListener(8888);
            serverSocket.Start();

            _threadmanage = ServerTheadingManage.getInstance();

            _myClientManage = MyClientManage.getInstance();
            _myClientManage.setCurrentForm(this);

            _myListenAccept      = SvListenAcceptClient.getInstance(serverSocket);
            _sthreadAcceptClient = new Thread(_myListenAccept.task);
            _myListenAccept.start();
            _myListenAccept.setForm(this);
            _sthreadAcceptClient.Start();

            tbPassword.Text = "";

            cleanGroupQuestion();
            lbServerIP.Text = GetLocalIPAddress();
            this.addToReceiverText(">> Server đã khởi động xong.");
        }
예제 #2
0
        private void Server_Load(object sender, EventArgs e)
        {
            serverSocket = new TcpListener(8888);
            serverSocket.Start();

            _threadmanage = ServerTheadingManage.getInstance();

            _myClientManage = MyClientManage.getInstance();
            _myClientManage.setCurrentForm(this);

            _myListenAccept = SvListenAcceptClient.getInstance(serverSocket);
            _sthreadAcceptClient = new Thread(_myListenAccept.task);
            _myListenAccept.start();
            _myListenAccept.setForm(this);
            _sthreadAcceptClient.Start();

            tbPassword.Text = "";

            cleanGroupQuestion();
            lbServerIP.Text = GetLocalIPAddress();
            this.addToReceiverText(">> Server đã khởi động xong.");
        }