LumiSoft Mail Server User API
ReadPeriodTerminated Method (stream, maxLength)
Namespaces > LumiSoft.Net > SocketEx > ReadPeriodTerminated(Stream, Int32)
Reads 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 ReadPeriodTerminated (
    	Stream stream,
    	int maxLength
    )

    Public Sub ReadPeriodTerminated ( _
    	stream As Stream, _
    	maxLength As Integer _
    )

    public:
    void ReadPeriodTerminated (
    	Stream^ stream,
    	int maxLength
    )

Parameters

stream (Stream)
  Stream where to store readed data.
maxLength (Int32)
  Maximum data length in bytes.

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