Reads and returns control connection data, if available.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Function Flush ( _
	timeLimit As Integer _
) As FtpResponse
C#
public FtpResponse Flush(
	int timeLimit
)

Parameters

timeLimit
Type: System..::..Int32
The length of time (in milliseconds) to wait for data to be received.

Return Value

FtpResponse if data was read or null reference if no data was read.

Remarks

Reads and returns any control connection data that might have remained unread after an asynchronous operation aborted by a call to Abort method.

It can also be used to read FTP server messages that are not responses to any commands.

If the state of the Ftp object is Ready and no data is available, this method returns immediately with a null reference. If the state of the Ftp object is Reading, Sending or Processing and no data is available within the specified time limit, it returns with a null reference. If data is available, it is read and returned. If the object is in any other state, an exception is thrown.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also