/** * @param PhpAmqpLib_Wire_AMQPReader $args * @return array */ public static function basicGetOk($args) { $ret = array(); $ret[] = $args->read_longlong(); $ret[] = $args->read_bit(); $ret[] = $args->read_shortstr(); $ret[] = $args->read_shortstr(); $ret[] = $args->read_long(); return $ret; }
/** * Provides client with a message * * @param PhpAmqpLib_Wire_AMQPReader $args * @param PhpAmqpLib_Message_AMQPMessage $msg * @return PhpAmqpLib_Message_AMQPMessage */ protected function basic_get_ok($args, $msg) { $delivery_tag = $args->read_longlong(); $redelivered = $args->read_bit(); $exchange = $args->read_shortstr(); $routing_key = $args->read_shortstr(); $message_count = $args->read_long(); $msg->delivery_info = array('delivery_tag' => $delivery_tag, 'redelivered' => $redelivered, 'exchange' => $exchange, 'routing_key' => $routing_key, 'message_count' => $message_count); return $msg; }
/** * Proposes connection tuning parameters * * @param PhpAmqpLib_Wire_AMQPReader $args */ protected function connection_tune($args) { $v = $args->read_short(); if ($v) { $this->channel_max = $v; } $v = $args->read_long(); if ($v) { $this->frame_max = $v; } // use server proposed value if not set if ($this->heartbeat === null) { $this->heartbeat = $args->read_short(); } $this->x_tune_ok($this->channel_max, $this->frame_max, $this->heartbeat); }
/** * @param PhpAmqpLib_Wire_AMQPReader $args * @return array */ public static function testContentOk($args) { $ret = array(); $ret[] = $args->read_long(); return $ret; }