Back to product page

StateChange method


Called when wodFtpDLX changes its state.

Type

None

Syntax

  • Basic
object.StateChange Owner, OldState
The StateChange(object,Owner,OldState) syntax has these parts:
objectAn expression evaluating to an object of type IwodFtpNotify.
OwnerRequired. A wodFtpDLXCom object.
OldStateRequired. A StatesEnum enumeration, as described in settings.

Remarks

Settings

The settings for value are:

Constant Value Description
Disconnected0 Disconnected from server.
Connecting 1 Connecting to server.
Encrypting2 Initializing secure connection.
LogonInProgress 3 Sending authentication data.
Connected4 Connected to server - idle.
GettingDataChannel 5 Getting data channel.
ConnectingDataChannel6 Connecting data channel.
ChangingDirectory 7 Changing current directory.
CheckRemoteSize8 Checking remote file size.
SettingRestPosition 9 Setting restart position.
MakingDirectory10 Creating directory on the server.
RemovingFile 11 Removing file or directory.
RenamingFile12 Renaming file on the server.
SettingTransferMode 13 SettingTransferMode
ListingDirectory14 Downloading directory list from the server.
Receiving15 Receiving data from server.
Sending16 Sending data to server.
Executing 17 Executing command on server.
ProxyConnecting18 ProxyConnecting
Disconnecting 19 Disconnecting from the server.
SettingDataChannel20 SettingDataChannel
ClearingCommandChannel 21 Clearing command channel security.
SettingCompression22 Setting compression level.
CalculatingRemoteCRC 23 Calculating remote CRC.
CheckRemoteDir24 Checking if directory exists.
GettingAttributes 25 Checking file or folder attributes.
SettingAttributes26 Setting file or folder attributes.


This method is called only if you implemented IwodFtpNotify interface in your application, and wodFtpDLX.Notification property has received reference to instance of your implementation.

StateChange notification method is called each time wodFtpDLX internal state changes. Initially, it is set to Disconnected. Once you initiate new connection, it will change to Connecting, etc..

Using this notification method you can see if there is something happening with wodFtpDLX, or it is idle and waiting for your commands.

You can determine current state using State property.

Platforms

Windows