Ejemplo n.º 1
0
            public void Read(Telnet TC)
            {
                string read = TC.Read();

                log.Append(read);
                PendingText += read;

                System.Diagnostics.Debug.Write(read);

                int index;

                while ((index = PendingText.IndexOfAny(endLines)) >= 0)
                {
                    string line = PendingText.Substring(0, index);
                    PendingText = PendingText.Substring(index + 1);

                    if (line.Length > 0)
                    {
                        Lines.Enqueue(line);
                    }
                }
            }