Back to product page
- Introduction
- Overview
- License agreement
- Getting Started
- Objects
- Enumerations
- wodSSHD
- Methods
- Properties
- Events
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- IwodSSHDNotify
- Methods
- Connecting
- CryptoInformation
- Disconnected
- LoginGSSAPI
- LoginPassword
- LoginPubkey
- PortBindRequest
- PortForwardConnect
- PortForwardDisconnect
- PortForwardRequest
- Received
- ServiceRequest
- ServiceStart
- SftpDeleteFile
- SftpDownloadFile
- SftpFileTransferData
- SftpListDir
- SftpListDirData
- SftpMakeDir
- SftpProgress
- SftpRemoveDir
- SftpRename
- SftpTransferComplete
- SftpUploadFile
- StateChanged
- Methods
- SSHKeyPair
- SSHUser
- SSHUsers
- How to get support
- Technical information
- Fast notifications
- 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 | A wodSSHD object. |
User | A SSHUser object. Reference to user whose state has changed. |
NewState | A SSHStates enumeration, as described in settings. Represents new user's state. |
OldState | A SSHStates enumeration, as described in settings. Represents new user's state. |
Remarks
The settings for Action are:
Constant | Value | Description |
---|---|---|
Disconnected | 0 | Disconnected from server. |
Connecting | 1 | Connecting to server. |
Negotiating | 2 | Negotiating encryption algorithms. |
Connected | 3 | Connected to server - idle. |
Sending | 4 | Sending data to server. |
Receiving | 5 | Receiving data from server. |
StateChanged event is fired each time user's state changes. Depending on values provided by this event, you can inspect user's behavior on your system, deny access to it or just store it locally for debugging purposes.
To get text description of the state, use StateText property.