Description
-
Called when user's state changes.
Return Type
-
None
Syntax
-
object.StateChanged Owner,
User, NewState, OldState
The StateChanged Method syntax has these parts:
| object |
An expression
evaluating to an object of type wodSSHD-Notifications. |
| Owner |
A wodSSHDCom object. Instance
of wodSSHServer that called this notification
method. |
| User |
A SSHUser object. Reference
to user whose state 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:
 |
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
-
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.
|