Ejemplo n.º 1
0
        protected virtual string ReadLine()
        {
            byte[]     bs        = null;
            LineParser linePaser = new LineParser();

            ASCIIEncoding aSCIIEncoding = new ASCIIEncoding();

            while ((bs = ReadByte()) != null)
            {
                linePaser.Write(aSCIIEncoding.GetChars(bs));

                string strNextLine = linePaser.ReadLine();
                if (strNextLine != null)
                {
                    return(strNextLine);
                }
            }

            throw new Pop3ServerIncorectAnswerException();
        }
Ejemplo n.º 2
0
        protected virtual string ReadLine()
        {
            byte[] bs = null;
            LineParser linePaser = new LineParser();

            ASCIIEncoding aSCIIEncoding = new ASCIIEncoding();

            while ((bs = ReadByte()) != null)
            {
                linePaser.Write(aSCIIEncoding.GetChars(bs));

                string strNextLine = linePaser.ReadLine();
                if (strNextLine != null)
                {
                    return strNextLine;
                }
            }

            throw new Pop3ServerIncorectAnswerException();
        }