Back to product page

SocksConnect event


Fires when a user wants to open an outgoing connection through a socks server.

Syntax

  • Basic
Private Sub object_SocksConnect(Chan, User, RemoteAddress, RemotePort, Login, Password, Allow)
The SocksConnect(object,Chan,User,RemoteAddress,RemotePort,Login,Password,Allow) syntax has these parts:
objectA wodTunnel object.
ChanA Channel object. Reference to the channel used.
UserAn User object. Reference to the user who wants to connect through a socks proxy.
RemoteAddressA String value. The Hostname or IP address that the user wants to connect to.
RemotePortA Long value. The Port on the remote host that the user wants to connect to.
LoginA String value. Login/Username supplied by the user to access wodSSHTunnel's socks features.
PasswordA String value. Password supplied by the user to access wodSSHTunnel's socks features.
AllowA Boolean value. When set to False, wodSSHTunnel aborts socks request.

Remarks

The SocksConnect event is fired only if you have created the channel using the SocksProxy setting in the Channel.Type property and the user wants to connect to a remote hostname through your proxy. When this event is fired you will get information about this socks request that you should evaluate and then set the Allow argument accordingly.

This event informs you that a request has been made but this does not mean that a connection will be established (it may still fail with an error), but in this case the appropriate event will be fired (such as the UserDisconnected event).

Platforms

Windows