Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.Flush Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9147)

Flush(Int32)

Reads and returns control connection data, if available.

Declaration
public FtpResponse Flush(int timeLimit)
Parameters
Type Name Description
Int32 timeLimit

The length of time (in milliseconds) to wait for data to be received.

Returns
Type Description
FtpResponse

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.

In This Article
  • Flush(Int32)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies