SocksConnect Method
      
 

Description

Called when user wants to open outgoing connection through remote wodVPN.

Return Type

None  

Syntax

object.SocksConnect Owner, Chan, User, RemoteAddress, RemotePort, Login, Password, Allow

The SocksConnect Method syntax has these parts:

PartDescription
objectAn 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 the channel used.
User A VPNUser object. Reference to the user who wants to connect through a socks proxy.
RemoteAddressA String value. Hostname or IP address that user wants to connect to.
RemotePortA Long value. Port on remote hostname that user wants to connect to.
LoginA String value. Login/Username supplied by the user, if any.
PasswordA String value. Password provided by the user.
AllowA Boolean value. When set to False, wodVPN aborts the socks request.

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.

SocksConnect notification method is called only if you have created TCPSocksProxy channel, and user wants to connect to remote address through your proxy. When this notification is called, you will get information about that socks request so you can evaluate it and set Allow argument accordingly

This notification informs you that request has been made - but doesn't yet mean that connection will be established (it may still fail with an error). In those cases appropriate notification method will be alled (such as UserConnected or UserDisconnected method).