mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-14 01:57:20 +01:00
SSH2: Add isConnected() function
This commit is contained in:
parent
25c7e7bd96
commit
0333805f5c
@ -2076,6 +2076,16 @@ class Net_SSH2 {
|
|||||||
$this->disconnect();
|
$this->disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the connection still active?
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function isConnected()
|
||||||
|
{
|
||||||
|
return $this->bitmap & NET_SSH2_MASK_LOGIN;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets Binary Packets
|
* Gets Binary Packets
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user