SSH2: Add isConnected() function

This commit is contained in:
terrafrost 2013-02-16 14:58:12 -06:00
parent 25c7e7bd96
commit 0333805f5c
1 changed files with 10 additions and 0 deletions

View File

@ -2076,6 +2076,16 @@ class Net_SSH2 {
$this->disconnect();
}
/**
* Is the connection still active?
*
* @access public
*/
function isConnected()
{
return $this->bitmap & NET_SSH2_MASK_LOGIN;
}
/**
* Gets Binary Packets
*