Class FtpClientState
- Namespace
- FluentFTP
- Assembly
- FluentFTP.dll
The current "state" of the client
public class FtpClientState
- Inheritance
-
FtpClientState
- Inherited Members
- Extension Methods
Constructors
FtpClientState()
public FtpClientState()
Properties
AllowCheckStaleData
Allow checking for stale data on socket?
public bool AllowCheckStaleData { get; set; }
Property Value
AutoDispose
Used to automatically dispose cloned connections after FXP transfer has ended.
public bool AutoDispose { get; set; }
Property Value
CachedHostIpads
Avoid repeated DNS queries for the same host name
public Dictionary<string, IPAddress[]> CachedHostIpads { get; set; }
Property Value
ConnectCount
Count the reconnects Reset this value when a non-reconnect takes place
public int ConnectCount { get; set; }
Property Value
ConnectionFTPSFailure
Did the FTPS connection fail during the last Connect/ConnectAsync attempt?
public bool ConnectionFTPSFailure { get; set; }
Property Value
ConnectionUTF8Success
Did the UTF8 encoding setting work during the last Connect/ConnectAsync attempt?
public bool ConnectionUTF8Success { get; set; }
Property Value
CurrentDataType
Store the current data type setting
public FtpDataType CurrentDataType { get; set; }
Property Value
DaemonAnyNoops
Background task sent noops
public bool DaemonAnyNoops { get; set; }
Property Value
DaemonCmdMode
Background task should GetReply
public bool DaemonCmdMode { get; set; }
Property Value
DaemonEnable
Background task enabled
public bool DaemonEnable { get; set; }
Property Value
DaemonRunning
Background task status
public bool DaemonRunning { get; set; }
Property Value
EPSVNotSupported
Used to improve performance of OpenPassiveDataStream. Enhanced-passive mode is tried once, and if not supported, is not tried again.
public bool EPSVNotSupported { get; set; }
Property Value
FileSizeASCIINotSupported
Used to improve performance of GetFileSize. SIZE command is tried, and if the server cannot send it in ASCII mode, we switch to binary each time you call GetFileSize. However most servers will support ASCII, so we can get the file size without switching to binary, improving performance.
public bool FileSizeASCIINotSupported { get; set; }
Property Value
IgnoreStaleData
Stale date will be on the control connection Ignore it
public bool IgnoreStaleData { get; set; }
Property Value
InCriticalSequence
We are in a sequence of commands that should not be interrupted by an automatic reconnect
public bool InCriticalSequence { get; set; }
Property Value
LastHashAlgo
Cached value of the last set hash algorithm.
public FtpHashAlgorithm LastHashAlgo { get; set; }
Property Value
LastWorkingDir
Cached value of the last read working directory (absolute path).
public string LastWorkingDir { get; set; }
Property Value
RecursiveListSupported
Used to improve performance of GetListing. You can set this to true by setting the RecursiveList property.
public bool RecursiveListSupported { get; set; }
Property Value
zOSListingLRECL
During and after a z/OS GetListing(), this value stores the the LRECL that was encountered (for a realm = Member only). The value is used internally to calculate member sizes
public ushort zOSListingLRECL { get; set; }
Property Value
zOSListingRealm
During and after a z/OS GetListing(), this value stores the z/OS filesystem realm that was encountered. The value is used internally to control the list parse mode
public FtpZOSListRealm zOSListingRealm { get; set; }
Property Value
Methods
CopyFrom(FtpClientState)
These flags must be copied when we quickly clone the connection.
public void CopyFrom(FtpClientState original)
Parameters
original
FtpClientState
Reset(bool)
These flags must be reset every time we connect, to allow for users to connect to different FTP servers with the same client object.
public void Reset(bool reConnect)
Parameters
reConnect
bool