src/Application/EchoService.php
public function handle(
        $msgType,
        \fpoirotte\Pssht\Wire\Decoder $decoder,
        \fpoirotte\Pssht\Transport $transport,
        array &$context
    ) {
        $message    = \fpoirotte\Pssht\Messages\CHANNEL\DATA::unserialize($decoder);
        $channel    = $message->getChannel();
        $response   = new \fpoirotte\Pssht\Messages\CHANNEL\DATA($channel, $message->getData());
        $transport->writeMessage($response);
        return true;
    }
public function handle(
        $msgType,
        \fpoirotte\Pssht\Wire\Decoder $decoder,
        \fpoirotte\Pssht\Transport $transport,
        array &$context
    ) {
        $message    = \fpoirotte\Pssht\Messages\CHANNEL\DATA::unserialize($decoder);
        $channel    = $message->getChannel();
        $response   = new \fpoirotte\Pssht\Messages\CHANNEL\DATA($channel, $message->getData());
        $transport->writeMessage($response);
        return true;
    }
public function handle ( $ msgType , \ fpoirotte \ Pssht \ Wire \ Decoder $ decoder , \ fpoirotte \ Pssht \ Transport $ transport , array & $ context ) { $ message = \ fpoirotte \ Pssht \ Messages \ CHANNEL \ DATA :: unserialize ( $ decoder ) ; $ channel = $ message -> getChannel ( ) ; $ response = new \ fpoirotte \ Pssht \ Messages \ CHANNEL \ DATA ( $ channel , $ message -> getData ( ) ) ; $ transport -> writeMessage ( $ response ) ; return true ; }
SSH_MSG_CHANNEL_DATA = 94
SSH_MSG_CHANNEL_DATA = 94