Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFTPD
- Methods
- Properties
- Authentication
- BindIP
- BindIPType
- Certificate
- DirFormat
- Encryption
- EncryptionList
- FileLocking
- FIPS
- ForceUTF8
- GoodbyeMessage
- GreetingMessage
- HMacList
- HostKeyList
- KeyExchangeList
- MaxDataPort
- MinDataPort
- MonitorTransfers
- MyHostname
- MyIP
- Notification
- PasvPort
- Port
- Protocol
- Secure
- ServerName
- SFTPVersion
- Status
- StrictDataIP
- Threads
- Timeout
- UseIPv6
- Users
- Version
- VirtualFiles
- VirtualFolders
- Events
- wodFTPDNotify
- FtpUser
- FtpUsers
- VirtualFile
- VirtualFiles
- VirtualFolder
- VirtualFolders
- How to get support?
- Technical information
- Fast notifications interface
- Error list
StateChanged notification
Called when user's state changes.
Syntax
- Basic
object.StateChanged Owner, User, NewState, OldState
The StateChanged(object,Owner,User,NewState,OldState) syntax has these parts:
The StateChanged(object,Owner,User,NewState,OldState) syntax has these parts:
object | An expression evaluating to an object of type wodFTPDNotify. |
Owner | A wodFTPDCom object. Reference to wodFTPServer instance that called this notification method. |
User | A FtpUser object. Reference to user whose state has changed. |
NewState | A StatesEnum enumeration, as described in settings. Represents new state. |
OldState | A StatesEnum enumeration, as described in settings. Represents previous state. |
Remarks
NOTE: This method is called only if you implemented IwodFTPDNotify interface in your application, and wodFTPD.Notification property has received reference to instance of your implementation.StateChanged notification method is called each time user's state changes. Depending on values provided by this notification, you can track down user's behavior on your system, deny access to it, or just store it locally for debugging purposes.
The settings for NewState and OldState are:
Constant | Value | Description |
---|---|---|
Disconnected | 0 | Disconnected from server. |
Connecting | 1 | Connecting to server. |
Encrypting | 2 | Initializing secure connection. |
LogonInProgress | 3 | Receiving authentication data. |
Connected | 4 | Connected - idle. |
SettingDataChannel | 5 | Setting data channel. |
ConnectingDataChannel | 6 | Connecting data channel. |
Listing | 17 | Listing directory contents. |
Downloading | 18 | Downloading file from the server. |
Uploading | 19 | Uploading file to the server. |