wodSSHTunnel ActiveX Control - SocksBind Method
      
 

Description

Called when a user wants to open an incoming connection through a socks server.


Return Type

None  


Syntax

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



The SocksBind Method syntax has these parts:

Part Description
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.
ChanA Channel object. Reference to the channel used.
UserAn User object. Reference to the user who wants to bind a remote port.
RemoteAddressA String value. Hostname or IP address of the bound address.
RemotePortA Long value. Port that should be opened for listening.
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 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 SocksBind notification method is only fired if you created the channel specifying the SocksProxy setting in the Channel.Type property and a user wants to open a port on the SSH server that services should connect to prior to being forwarded locally. When this notification is called, you will get information about this socks request that you should evaluate before setting 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).

 

wodSSHTunnel cannot know the IP address of the interface actually used for listening. Typically, this will be the IP address of the outgoing interface on the SSH server but this information is never available, even to wodSSHTunnel. So, in order for applications to receive the correct IP address, you will need to populate it by yourself. When doing so, please provide the IP address of the interface, not its hostname.