pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Application\EchoService Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Application\EchoService:

Public Member Functions

 __construct (\fpoirotte\Pssht\Transport $transport,\fpoirotte\Pssht\Connection $connection,\fpoirotte\Pssht\Messages\MessageInterface $message)
 
 handle ($msgType,\fpoirotte\Pssht\Wire\Decoder $decoder,\fpoirotte\Pssht\Transport $transport, array &$context)
 

Detailed Description

A sample application that acts like an echo server, sending back whatever message it is fed with.

Definition at line 17 of file EchoService.php.

Member Function Documentation

fpoirotte\Pssht\Application\EchoService::handle (   $msgType,
\fpoirotte\Pssht\Wire\Decoder  $decoder,
\fpoirotte\Pssht\Transport  $transport,
array &  $context 
)

Handle an SSH message.

Parameters
int$msgTypeMessage identifier.
fpoirotte::Pssht::Wire::Decoder$decoderDecoder for the message.
fpoirotte::Pssht::Transport$transportTransport layer the message was received from.
array$contextContext for the SSH connection.

Implements fpoirotte\Pssht\Handlers\HandlerInterface.

Definition at line 28 of file EchoService.php.

References fpoirotte\Pssht\Messages\CHANNEL\DATA\unserialize().


The documentation for this class was generated from the following file: