wodSSHServer ActiveX Control - StateChanged Event
    
 

Description

Fires when user's state changes.


Syntax

Private Sub object_StateChanged(User, NewState, OldState)



The StateChanged Event syntax has these parts:

Part Description
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 previous user's state.

Settings

The settings for OldState and NewState 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.

Remarks

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.