SocksConnect Event
    
 

Description

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

Syntax

Private Sub object_SocksConnect(Chan, User, RemoteAddress, RemotePort, Login, Password, Allow)

The SocksConnect Event syntax has these parts:

PartDescription
objectA wodVPN object.
ChanA VPNChannel object. Reference to the channel used.
UserA VPNUser object. Reference to the user who wants to connect through a socks proxy.
RemoteAddress A String value. Hostname or IP address that user wants to connect to.
RemotePort A Long value. Port on remote hostname that user wants to connect to.
Login A String value. Login/Username supplied by the user, if any.
Password A String value. Password provided by the user.
Allow A Boolean value. When set to False, wodVPN aborts the socks request.

Remarks

SocksConnect event is fired 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 event).