_close_channel() public method

Net_SSH2 doesn't properly close most channels. For exec() channels are normally closed by the server and for SFTP channels are presumably closed when the client disconnects. This functions is intended for SCP more than anything.
public _close_channel ( integer $client_channel, boolean $want_reply = false ) : boolean
$client_channel integer
$want_reply boolean
return boolean
Ejemplo n.º 1
0
 public function closeChannel()
 {
     $this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC);
 }