Back to product page

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:
objectA wodSSHD object.
UserA SSHUser object. Reference to user whose state has changed.
NewStateA SSHStates enumeration, as described in settings. Represents new user's state.
OldStateA SSHStates enumeration, as described in settings. Represents new user's state.

Remarks

The settings for Action are:

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.


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.

Platforms

Windows