Back to product page

Connecting


Called when user tries to connect to the server.

Syntax

  • Basic
object.Connecting Owner, User, Action  
The Connecting(object,Owner,User,Action) 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.
ActionA SSHActions enumeration, as described in settings. Action to perform for the user - Allow means he is allowed to connect, Deny will disconnect user immediately.

Remarks

The settings for Action are:

Constant Value Description
Deny0 Deny execution of the action.
Allow 1 Allow to execute action.


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.

This notification method is called before any data is transmitted by wodSSHD, upon new connection by some client. At this point client's IP address is known, and User.RemoteIP is set with that information. You should decide if you will allow the user to continue authentication with the server, or reject him from your server immediately.


Platforms

Windows