_close_channel() 공개 메소드

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
리턴 boolean
예제 #1
0
 public function closeChannel()
 {
     $this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC);
 }