NET SFTP Library
CreatePortForwardingL Method






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : CreatePortForwardingL Method
The network interface we should be listening on
The local port to listen on. If 0, the system randomly selects a port (and returns this number).
The remote host (i.e. at the server-side) to forward the connections to.
The port at the remote host to forward the connections to.
Creates a local-side port forwarding.
Syntax
'Declaration
 
Public Function CreatePortForwardingL( _
   ByVal boundAddress As System.String, _
   ByVal lPort As System.Integer, _
   ByVal host As System.String, _
   ByVal rPort As System.Integer _
) As System.Integer
'Usage
 
Dim instance As SFTP
Dim boundAddress As System.String
Dim lPort As System.Integer
Dim host As System.String
Dim rPort As System.Integer
Dim value As System.Integer
 
value = instance.CreatePortForwardingL(boundAddress, lPort, host, rPort)
public System.int CreatePortForwardingL( 
   System.string boundAddress,
   System.int lPort,
   System.string host,
   System.int rPort
)
public function CreatePortForwardingL( 
    boundAddress: System.String;
    lPort: System.Integer;
    host: System.String;
    rPort: System.Integer
): System.Integer; 
public function CreatePortForwardingL( 
   boundAddress : System.String,
   lPort : System.int,
   host : System.String,
   rPort : System.int
) : System.int;
public: System.int CreatePortForwardingL( 
   System.string* boundAddress,
   System.int lPort,
   System.string* host,
   System.int rPort
) 
public:
System.int CreatePortForwardingL( 
   System.String^ boundAddress,
   System.int lPort,
   System.String^ host,
   System.int rPort
) 

Parameters

boundAddress
The network interface we should be listening on
lPort
The local port to listen on. If 0, the system randomly selects a port (and returns this number).
host
The remote host (i.e. at the server-side) to forward the connections to.
rPort
The port at the remote host to forward the connections to.

Return Value

The local port number we now are listening on.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SFTP Class
SFTP Members