phpseclib\Net\SSH2::_get_interactive_channel PHP Метод

_get_interactive_channel() публичный Метод

Return the channel to be used with read() / write()
См. также: self::read()
См. также: self::write()
public _get_interactive_channel ( ) : integer
Результат integer
    function _get_interactive_channel()
    {
        switch (true) {
            case $this->in_subsystem:
                return self::CHANNEL_SUBSYSTEM;
            case $this->in_request_pty_exec:
                return self::CHANNEL_EXEC;
            default:
                return self::CHANNEL_SHELL;
        }
    }