SmtpReplyReader.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Mail / SmtpReplyReader.cs / 1 / SmtpReplyReader.cs

                            namespace System.Net.Mail 
{
    using System;
    using System.IO;
 

    //streams are read only; return of 0 means end of server's reply 
    class SmtpReplyReader 
    {
        SmtpReplyReaderFactory reader; 

        internal SmtpReplyReader(SmtpReplyReaderFactory reader)
        {
            this.reader = reader; 
        }
 
        internal IAsyncResult BeginReadLines(AsyncCallback callback, object state) 
        {
            return reader.BeginReadLines(this, callback, state); 
        }

        internal IAsyncResult BeginReadLine(AsyncCallback callback, object state)
        { 
            return reader.BeginReadLine(this, callback, state);
        } 
 

        public void Close() 
        {
            reader.Close(this);
        }
 

        internal LineInfo[] EndReadLines(IAsyncResult result) 
        { 
            return reader.EndReadLines(result);
        } 

        internal LineInfo EndReadLine(IAsyncResult result)
        {
            return reader.EndReadLine(result); 
        }
 
        internal LineInfo[] ReadLines() 
        {
            return reader.ReadLines(this); 
        }

        internal LineInfo ReadLine()
        { 
            return reader.ReadLine(this);
        } 
    } 
}
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK