Description Called when user wants to connect to listening channel.
Return Type
None
Syntax
object.UserConnecting Owner, Chan, Hostname, Port, Allow
The UserConnecting Method syntax has these parts:
|
object | An expression evaluating to an object of type IwodVPNNotify. | Owner |
A wodVPNCom object. Reference to the wodVPNCom instance that called this notification method. | Chan |
A VPNChannel object. Reference to used channel. | Hostname | A String value. Originating hostname/IP address of the user. | Port | A Long value. Originating port of the user. | Allow | A Boolean value. When set to False, wodVPN aborts the connection. |
Remarks This method is called
only if you have implemented the
IwodVPNNotify interface in your
application and the wodVPN1.Notification
property has received a reference to an instance of your implementation. UserConnecting notification method is called when someone wants to connect to wodVPN, but before they can actually transmit any data. At this point, you can decide whether you want to allow the user to use the channel or not. Typically, based on user's
Hostname and originating
Port, you can see if that is expected connection or not. As there is no way to hide listening sockets from disallowed users, they will still try to connect, but you can immediately disconnect them through this event.
|