pssht  latest
SSH server library written in PHP
DISCONNECT.php
1 <?php
2 
3 /*
4 * This file is part of pssht.
5 *
6 * (c) François Poirotte <clicky@erebot.net>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 
12 namespace fpoirotte\Pssht\Handlers;
13 
18 {
19  // SSH_MSG_DISCONNECT = 1
20  public function handle(
21  $msgType,
22  \fpoirotte\Pssht\Wire\Decoder $decoder,
23  \fpoirotte\Pssht\Transport $transport,
24  array &$context
25  ) {
27  throw new $message;
28  }
29 }
handle($msgType,\fpoirotte\Pssht\Wire\Decoder $decoder,\fpoirotte\Pssht\Transport $transport, array &$context)
Definition: DISCONNECT.php:20
static unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder)
Definition: DISCONNECT.php:121