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 method
Called when user's state changes.
Type
NoneSyntax
- 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 IwodSSHDNotify. |
Owner | A wodSSHDcom object. Instance of wodSSHServer that called this notification method. |
User | A SSHUser object. Reference to user whose state changed. |
NewState | A SSHActions enumeration, as described in settings. Represents new user's state. |
OldState | A SSHActions enumeration, as described in settings. Represents new user's state. Represents previous user's state. |
Remarks
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. |
This method is called only if you implemented IwodSSHNotify interface in your application, and wodSSHD.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 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.