src/Handlers/CHANNEL/CLOSE.php
public function handle(
        $msgType,
        \fpoirotte\Pssht\Wire\Decoder $decoder,
        \fpoirotte\Pssht\Transport $transport,
        array &$context
    ) {
        $message = \fpoirotte\Pssht\Messages\CHANNEL\CLOSE::unserialize($decoder);
        $channel = $message->getChannel();
        $response = new \fpoirotte\Pssht\Messages\CHANNEL\CLOSE(
            $this->connection->getChannel($channel)
        );
        $transport->writeMessage($response);
        $this->connection->freeChannel($channel);
        return true;
    }
public function handle(
        $msgType,
        \fpoirotte\Pssht\Wire\Decoder $decoder,
        \fpoirotte\Pssht\Transport $transport,
        array &$context
    ) {
        $message = \fpoirotte\Pssht\Messages\CHANNEL\CLOSE::unserialize($decoder);
        $channel = $message->getChannel();
        $response = new \fpoirotte\Pssht\Messages\CHANNEL\CLOSE(
            $this->connection->getChannel($channel)
        );
        $transport->writeMessage($response);
        $this->connection->freeChannel($channel);
        return true;
    }
public function handle ( $ msgType , \ fpoirotte \ Pssht \ Wire \ Decoder $ decoder , \ fpoirotte \ Pssht \ Transport $ transport , array & $ context ) { $ message = \ fpoirotte \ Pssht \ Messages \ CHANNEL \ CLOSE :: unserialize ( $ decoder ) ; $ channel = $ message -> getChannel ( ) ; $ response = new \ fpoirotte \ Pssht \ Messages \ CHANNEL \ CLOSE ( $ this -> connection -> getChannel ( $ channel ) ) ; $ transport -> writeMessage ( $ response ) ; $ this -> connection -> freeChannel ( $ channel ) ; return true ; }
SSH_MSG_CHANNEL_CLOSE = 97
SSH_MSG_CHANNEL_CLOSE = 97