Back to product page

Disconnected method

Called when user leaves the server.




  • Basic
object.Disconnected Owner, User  
The Disconnected(object,Owner,User) 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 that is trying to connect.


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.

At this point Users.Count property will still have information about this user which will be decremented as soon as this notification method is left. For example, if there is only one user on your system and he disconnects, Users.Count will have value 1 at the time this notification method is called, even if user already disconnected. This is left so you can make some changes or save state information for the user.