pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($type, $channel, $initialWindowSize, $maximumPacketSize) | |
getType () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
![]() | |
__construct ($channel) | |
getChannel () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$initialWindowSize | |
Initial window size for the channel. | |
$maximumPacketSize | |
Maximum packet size. | |
$type | |
Channel type. | |
![]() | |
$channel | |
Local channel identifier. | |
fpoirotte\Pssht\Messages\CHANNEL\OPEN::__construct | ( | $type, | |
$channel, | |||
$initialWindowSize, | |||
$maximumPacketSize | |||
) |
Construct a new SSH_MSG_CHANNEL_OPEN message.
string | $type | Channel type to open. |
Abstract constructor for a channel-related SSH message.
int | $channel | Local channel identifier. |
int | $initialWindowSize | Initial window size for the channel. |
int | $maximumPacketSize | Maximum packet size. |
Definition at line 43 of file OPEN.php.
References fpoirotte\Pssht\Messages\CHANNEL\Base\$channel, fpoirotte\Pssht\Messages\CHANNEL\OPEN\$initialWindowSize, fpoirotte\Pssht\Messages\CHANNEL\OPEN\$maximumPacketSize, and fpoirotte\Pssht\Messages\CHANNEL\OPEN\$type.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
fpoirotte\Pssht\Messages\CHANNEL\OPEN::getType | ( | ) |
Get the channel type to open.
string | Channel type to open. |
Definition at line 81 of file OPEN.php.
References fpoirotte\Pssht\Messages\CHANNEL\OPEN\$type.
fpoirotte\Pssht\Messages\CHANNEL\OPEN::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
|
static |
Unserialize some data into a message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use to perform unserialization. |
MessageInterface | Unserialized message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 65 of file OPEN.php.
Referenced by fpoirotte\Pssht\Handlers\CHANNEL\OPEN\handle().