Back to product page

SocksBind method


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

Type

None

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.

Platforms

Windows