示例#1
0
 /**
  * Construct a new SSH_MSG_CHANNEL_REQUEST message
  * for the "exit-signal" type.
  *
  *  \copydetails Base::__construct
  *
  *  \param string $signal
  *      Signal name, without the "SIG" prefix.
  *
  *  \param bool $coreDumped
  *      Whether a core file was dumped (\b true)
  *      or not (\b false).
  *
  *  \param string $error
  *      Text explaining the error in more details.
  *
  *  \param string $language
  *      Language the error message is written into,
  *      in RFC 3066 format.
  */
 public function __construct($channel, $type, $wantReply, $signal, $coreDumped, $error, $language)
 {
     parent::__construct($channel, $type, $wantReply);
     $this->signal = $signal;
     $this->coreDumped = $coreDumped;
     $this->error = $error;
     $this->language = $language;
 }
示例#2
0
 /**
  * Construct a new "pty-req" SSH_MSG_CHANNEL_REQUEST message.
  *
  *  \copydetails Base::__construct
  *
  *  \param string $term
  *      Terminal to emulate.
  *
  *  \param int $widthInCols
  *      Terminal width in characters.
  *
  *  \param int $heightInRows
  *      Terminal height in rows.
  *
  *  \param int $widthInPixels
  *      Terminal width in pixels.
  *
  *  \param int $heightInPixels
  *      Terminal height in pixels.
  *
  *  \param string $modes
  *      Encoded terminal modes.
  */
 public function __construct($channel, $type, $wantReply, $term, $widthInCols, $heightInRows, $widthInPixels, $heightInPixels, $modes)
 {
     parent::__construct($channel, $type, $wantReply);
     $this->term = $term;
     $this->widthInCols = $widthInCols;
     $this->heightInRows = $heightInRows;
     $this->widthInPixels = $widthInPixels;
     $this->heightInPixels = $heightInPixels;
     $this->modes = $modes;
 }
示例#3
0
 /**
  * Construct a new SSH_MSG_CHANNEL_REQUEST message
  * for the "exit-signal" type.
  *
  *  \copydetails Base::__construct
  *
  *  \param int $status
  *      Exit status of the process.
  */
 public function __construct($channel, $type, $wantReply, $status)
 {
     parent::__construct($channel, $type, $wantReply);
     $this->status = $status;
 }
示例#4
0
文件: Exec.php 项目: fpoirotte/pssht
 /**
  * Construct a new SSH_MSG_CHANNEL_REQUEST message
  * for the "exec" type.
  *
  *  \copydetails Base::__construct
  *
  *  \param string $command
  *      Command to execute.
  */
 public function __construct($channel, $type, $wantReply, $command)
 {
     parent::__construct($channel, $type, $wantReply);
     $this->command = $command;
 }