/** * negotiate connection tuning parameters */ protected function x_tune_ok($channel_max, $frame_max, $heartbeat) { $args = new AMQPWriter(); $args->write_short($channel_max); $args->write_long($frame_max); $args->write_short($heartbeat); $this->send_method_frame(array(10, 31), $args); $this->wait_tune_ok = false; }
public function basicQos($prefetch_size = 0, $prefetch_count = 0, $global = false) { $args = new AMQPWriter(); $args->write_long($prefetch_size); $args->write_short($prefetch_count); $args->write_bit($global); return array(60, 10, $args); }
public function testInteger($integer_1, $integer_2, $integer_3, $integer_4, $operation) { $args = new AMQPWriter(); $args->write_octet($integer_1); $args->write_short($integer_2); $args->write_long($integer_3); $args->write_longlong($integer_4); $args->write_octet($operation); return array(120, 10, $args); }