Esempio 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();
        }
Esempio 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();
        }