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 event
Fires when user's state changes.
Syntax
- Basic
Private Sub object_StateChanged(User, NewState, OldState)
The StateChanged(object,User,NewState,OldState) syntax has these parts:
The StateChanged(object,User,NewState,OldState) syntax has these parts:
object | An expression evaluating to an object of type wodFTPD. |
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
StateChanged event is fired each time user's state changes. Depending on values provided by this event, 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. |