OpenTcpIpChannel Method
Opens a special TCP/IP tunneling SSHChannel .
Object Oriented Interface
public function doOpenTcpIpChannel($desthost, $destport, $srchost, $srcport);
Procedural Interface
ipworksssh_sshclient_do_opentcpipchannel($res, $desthost, $destport, $srchost, $srcport);
Remarks
OpenTcpIpChannel opens a special SSHChannel of type "direct-tcpip". Unlike channels opened by OpenChannel, "direct-tcpip" channels are secured data tunnels that forward data through the SSHHost to another destination.
DestHost and DestPort represent, respectively, the host name or IP address and the port for which the data of this channel is bound. When OpenTcpIpChannel is called, the SSHHost will attempt to connect to the machine identified by these parameters.
Likewise, SrcHost and SrcPort identify the originator of the data. These may be different from LocalHost and LocalPort if the current instance of the class is being used to forward data from another TCP/IP client.