pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA:

Public Member Functions

 __construct ($channel, $code, $data)
 
 getCode ()
 
 getData ()
 
 serialize (\fpoirotte\Pssht\Wire\Encoder $encoder)
 
- Public Member Functions inherited from fpoirotte\Pssht\Messages\CHANNEL\Base
 __construct ($channel)
 
 getChannel ()
 
 serialize (\fpoirotte\Pssht\Wire\Encoder $encoder)
 

Static Public Member Functions

static getMessageId ()
 
static unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder)
 
- Static Public Member Functions inherited from fpoirotte\Pssht\Messages\CHANNEL\Base
static unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder)
 

Public Attributes

const SSH_EXTENDED_DATA_STDERR = 1
 Assume the extended data stream is stderr.
 

Protected Attributes

 $code
 Code designating the extended data stream.
 
 $data
 Payload.
 
- Protected Attributes inherited from fpoirotte\Pssht\Messages\CHANNEL\Base
 $channel
 Local channel identifier.
 

Detailed Description

SSH_MSG_CHANNEL_EXTENDED_DATA message (RFC 4254).

Definition at line 17 of file DATA.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::__construct (   $channel,
  $code,
  $data 
)

Construct a new SSH_MSG_CHANNEL_EXTENDED_DATA message.

Abstract constructor for a channel-related SSH message.

Parameters
int$channelLocal channel identifier.
int$codeCode designating the extended data stream the payload is taken from.
string$dataMessage's payload.

Definition at line 41 of file DATA.php.

References fpoirotte\Pssht\Messages\CHANNEL\Base\$channel, fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA\$code, and fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA\$data.

Member Function Documentation

fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::getCode ( )

Get the extended stream's identifier.

Return values
intExtended stream's code.

Definition at line 76 of file DATA.php.

References fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA\$code.

fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::getData ( )

Get the payload associated with this message.

Return values
stringMessage's payload.

Definition at line 87 of file DATA.php.

References fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA\$data.

static fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::getMessageId ( )
static

Retrieve the message's identifier.

Return values
intMessage identifier.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 48 of file DATA.php.

fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::serialize ( \fpoirotte\Pssht\Wire\Encoder  $encoder)

Serialize the message.

Parameters
fpoirotte::Pssht::Wire::Encoder$encoderEncoder to use to perform serialization.
Return values
MessageInterfaceReturns this message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 53 of file DATA.php.

static fpoirotte\Pssht\Messages\CHANNEL\EXTENDED\DATA::unserialize ( \fpoirotte\Pssht\Wire\Decoder  $decoder)
static

Unserialize some data into a message.

Parameters
fpoirotte::Pssht::Wire::Decoder$decoderDecoder to use to perform unserialization.
Return values
MessageInterfaceUnserialized message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 61 of file DATA.php.


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