Exemplo n.º 1
0
 /**
  * @param string $clientProperties
  * @param string $mechanism
  * @param string $response
  * @param string $locale
  */
 protected function xStartOk($clientProperties, $mechanism, $response, $locale)
 {
     $args = new Writer();
     $args->writeTable($clientProperties);
     $args->writeShortStr($mechanism);
     $args->writeLongStr($response);
     $args->writeShortStr($locale);
     $this->sendMethodFrame(array(10, 11), $args);
 }
Exemplo n.º 2
0
 /**
  * @param $consumerTag
  * @param $nowait
  *
  * @return \AMQP\Wire\Writer
  */
 public function basicCancel($consumerTag, $nowait)
 {
     $args = new Writer();
     $args->writeShortStr($consumerTag)->writeBit($nowait);
     return $args;
 }