pssht
latest
SSH server library written in PHP
Main Page
Classes
Files
File List
Exec.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\Messages\CHANNEL\REQUEST
;
13
18
class
Exec
extends
\fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base
19
{
21
protected
$command
;
22
23
33
public
function
__construct
(
$channel
,
$type
,
$wantReply
,
$command
)
34
{
35
parent::__construct(
$channel
,
$type
,
$wantReply
);
36
$this->command =
$command
;
37
}
38
39
public
function
serialize
(\
fpoirotte
\Pssht\Wire\
Encoder
$encoder)
40
{
41
parent::serialize($encoder);
42
$encoder->encodeString($this->command);
43
return
$this;
44
}
45
46
protected
static
function
unserializeSub(\
fpoirotte
\Pssht\Wire\
Decoder
$decoder)
47
{
48
return
array($decoder->decodeString());
49
}
50
57
public
function
getCommand
()
58
{
59
return
$this->command
;
60
}
61
}
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\$command
$command
Command to execute.
Definition:
Exec.php:21
fpoirotte\Pssht\Messages\CHANNEL\Base\$channel
$channel
Local channel identifier.
Definition:
Base.php:20
fpoirotte\Pssht\Wire\Decoder
Definition:
Decoder.php:17
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\getCommand
getCommand()
Definition:
Exec.php:57
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec
Definition:
Exec.php:18
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$wantReply
$wantReply
Whether the sender of the message wants a reply or not.
Definition:
Base.php:23
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\__construct
__construct($channel, $type, $wantReply, $command)
Definition:
Exec.php:33
fpoirotte\Pssht\Wire\Encoder
Definition:
Encoder.php:17
fpoirotte\Pssht\Messages\CHANNEL\REQUEST
Definition:
Base.php:12
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base
Definition:
Base.php:17
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\serialize
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
Definition:
Exec.php:39
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$type
$type
Message type.
Definition:
Base.php:20
fpoirotte
src
Messages
CHANNEL
REQUEST
Exec.php
Generated on Tue May 9 2017 12:09:56 for pssht by
1.8.11