src/SSH/Driver/Sftp.php
public function handleHeartbeat()
    {
        $fp = @fopen("ssh2.sftp://" . $this->resource . "/.", "r");

        if (!$fp || !is_resource($fp))
        {
            return $this->ssh2->disconnect();
        }

        fclose($fp);

        $this->handleData();
    }
public function handleHeartbeat()
    {
        $fp = @fopen("ssh2.sftp://" . $this->resource . "/.", "r");

        if (!$fp || !is_resource($fp))
        {
            return $this->ssh2->disconnect();
        }

        fclose($fp);

        $this->handleData();
    }
public function handleHeartbeat ( ) { $ fp = @ fopen ( "ssh2.sftp://" . $ this -> resource . "/." , "r" ) ; if ( ! $ fp || ! is_resource ( $ fp ) ) { return $ this -> ssh2 -> disconnect ( ) ; } fclose ( $ fp ) ; $ this -> handleData ( ) ; }
Determine whether connection is still open.

@internal
Determine whether connection is still open .