예제 #1
0
파일: Chat.cs 프로젝트: PHPPlay/OpenRAT
        private void start()
        {
            clientChat = new TcpClient();
            clientChat.Connect("nuggetor.ddns.net", 2019);

            sw = new StreamWriter(clientChat.GetStream(), ASCIIEncoding.ASCII);
            StreamReader sr = new StreamReader(clientChat.GetStream(), ASCIIEncoding.ASCII);

            ChatClass cclass = new ChatClass(outputBox, clientChat);
            chatThread = new Thread(cclass.run);
            chatThread.Start();

        }
예제 #2
0
        private void start()
        {
            clientChat = new TcpClient();
            clientChat.Connect("nuggetor.ddns.net", 2019);

            sw = new StreamWriter(clientChat.GetStream(), ASCIIEncoding.ASCII);
            StreamReader sr = new StreamReader(clientChat.GetStream(), ASCIIEncoding.ASCII);

            ChatClass cclass = new ChatClass(outputBox, clientChat);

            chatThread = new Thread(cclass.run);
            chatThread.Start();
        }