Description
-
Called when a user wants to open an outgoing connection through a socks
server.
Return Type
-
None
Syntax
-
object.SocksConnect Owner, Chan, User,
RemoteAddress, RemotePort, Login, Password, Allow
The SocksConnect Method syntax has these parts:
| object |
An expression
evaluating to an object of type wodTunnelNotify. |
| Owner |
Required. A wodTunnelCom object.
Reference to the wodTunnelCom instance that called this
notification method. |
| Chan | A Channel
object. Reference to the channel used. |
| User | An User
object. Reference to the user that wants to connect through a socks
proxy. |
|
RemoteAddress | A String value.
Hostname or IP address that the user wants to connect to. |
|
RemotePort | A Long value. Port
on the remote host that the user wants to connect to. |
| Login |
A String value. Login/Username supplied by the user to access
wodSSHTunnel's socks features. |
| Password |
A String value. Password supplied by the user to access wodSSHTunnel's
socks features. |
| Allow |
A Boolean value. When set to False, wodSSHTunnel aborts the
socks request. |
Remarks
-
This method is called only if you have
implemented the IwodSSHTunnelNotify interface in your
application and the wodTunnel1.Notification
property has received a reference to an
instance of your implementation.
-
The SocksConnect notification method is called only if you have
created the channel specifying the SocksProxy setting in the
Channel.Type property and a
user wants to connect to a remote hostname through your proxy. When the
notification is
called, you will get information about this socks request that you should
evaluate and set the Allow argument accordingly.
This notification informs you that a request has been made - this does not necessarily
mean that a connection will be established (it may still fail with an
error), but in this case the appropriate notification will be called (such as the
UserDisconnected
notification method).
|