Back to product page

Type property

Holds a reference to the users currently using this channel.


A ForwardTypesEnum enumeration


  • Basic
object.Type  [= value]    
The Type(object,value) syntax has these parts:
objectAn expression evaluating to an object of type Channel.
valueA ForwardTypesEnum enumeration, as described in settings.


The settings for Action are:

Constant Value Description
LocalListen0 Local forwarding.
RemoteListen 1 Remote forwarding.
SocksProxy 2 Dynamic socks proxy forwarding.
Channel type is a very important property of the channel as it describes how the channel operates - whether it initiates connections or accepts them.

Basically there are three types of channel - LocalListen, RemoteListen and SocksProxy.

When you define a channel as LocalListen (and start the channel), then wodSSHTunnel will listen locally on the selected LocalPort. When a connection arrives, it will accept it, encrypt it and send it through the secure tunnel to the SSH server. The SSH server will decrypt it and forward it to RemoteAddress/ RemotePort.

If you define a channel as RemoteListen (and start it), then the SSH server will listen on the selected RemotePort. When a new connection arrives on the SSH server on this port, it will encrypt it and forward it to the local computer. wodSSHTunnel will receive it, decrypt it and initiate a new connection to LocalPort, just as if a connection was made directly to this computer.

Defining a new channel as SocksProxy will cause wodSSHTunnel to open a local port (on the LocalAddress interface). When applications connect to this port, it will provide information about the dynamic tunnel to be created - at the Hostname/Port required by the application. The SocksConnect and SocksBind events will fire to notify you about such operations.