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

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 used for testing purposes.

This application can only be used as a direct command. It expects a number to be given as the command and will display a message with that number. It will also exit with that number as the exit status.

Definition at line 23 of file TestService.php.

Member Function Documentation

fpoirotte\Pssht\Application\TestService::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 80 of file TestService.php.


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