Ejemplo n.º 1
0
 /**
  * @param Wire\Reader $args
  * @param Message     $msg
  *
  * @return Message
  */
 protected function basicGetOk(\AMQP\Wire\Reader $args, \AMQP\Message $msg)
 {
     $deliveryTag = $args->readLonglong();
     $redelivered = $args->readBit();
     $exchange = $args->readShortstr();
     $routingKey = $args->readShortstr();
     $messageCount = $args->readLong();
     $msg->delivery_info = array("delivery_tag" => $deliveryTag, "redelivered" => $redelivered, "exchange" => $exchange, "routing_key" => $routingKey, "message_count" => $messageCount);
     return $msg;
 }
Ejemplo n.º 2
0
 /**
  * propose connection tuning parameters
  *
  * @param \AMQP\Wire\Reader $args
  */
 protected function tune(Reader $args)
 {
     $v = $args->readShort();
     if ($v) {
         $this->channelMax = $v;
     }
     $v = $args->readLong();
     if ($v) {
         $this->frameMax = $v;
     }
     $this->heartbeat = $args->readShort();
     $this->xTuneOk($this->channelMax, $this->frameMax, 0);
 }