LumiSoft Mail Server User API
BeginReadPeriodTerminated Method (stream, maxLength, tag, callback)
Namespaces > LumiSoft.Net > SocketEx > BeginReadPeriodTerminated(Stream, Int32, Object, SocketCallBack)
Begins reading period terminated data. The data is terminated by a line containing only a period, that is, the character sequence "<CRLF>.<CRLF>". When a line of text is received, it checks the line. If the line is composed of a single period, it is treated as the end of data indicator. If the first character is a period and there are other characters on the line, the first character is deleted. If maximum allowed data length is exceeded data is read to end, but isn't stored to stream and exception is thrown after data reading.
Syntax

C# | Visual Basic | Managed C++

    public void BeginReadPeriodTerminated (
    	Stream stream,
    	int maxLength,
    	Object tag,
    	SocketCallBack callback
    )

    Public Sub BeginReadPeriodTerminated ( _
    	stream As Stream, _
    	maxLength As Integer, _
    	tag As Object, _
    	callback As SocketCallBack _
    )

    public:
    void BeginReadPeriodTerminated (
    	Stream^ stream,
    	int maxLength,
    	Object^ tag,
    	SocketCallBack^ callback
    )

Parameters

stream (Stream)
  Stream where to store readed data.
maxLength (Int32)
  Maximum data length in bytes.
tag (Object)
  User data.
callback (SocketCallBack)
  The method to be called when the asynchronous read operation is completed.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)