Ejemplo n.º 1
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();

        }
Ejemplo n.º 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();
        }