Back to product page

StateChanged method


Called when user's state changes.

Type

None

Syntax

  • Basic
object.StateChanged Owner, User, NewState, OldState  
The StateChanged(object,Owner,User,NewState,OldState) syntax has these parts:
objectAn expression evaluating to an object of type IwodSSHDNotify.
OwnerA wodSSHDcom object. Instance of wodSSHServer that called this notification method.
UserA SSHUser object. Reference to user whose state changed.
NewStateA SSHActions enumeration, as described in settings. Represents new user's state.
OldStateA SSHActions enumeration, as described in settings. Represents new user's state. Represents previous user's state.

Remarks

Constant Value Description
Disconnected0 Disconnected from server.
Connecting 1 Connecting to server.
Negotiating2 Negotiating encryption algorithms.
Connected 3 Connected to server - idle.
Sending4 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.

Platforms

Windows