/**
  * Starts connection negotiation
  *
  * @param AMQPReader $args
  */
 protected function connection_start($args)
 {
     $this->version_major = $args->read_octet();
     $this->version_minor = $args->read_octet();
     $this->server_properties = $args->read_table();
     $this->mechanisms = explode(' ', $args->read_longstr());
     $this->locales = explode(' ', $args->read_longstr());
     $this->debug->debug_connection_start($this->version_major, $this->version_minor, $this->server_properties, $this->mechanisms, $this->locales);
 }
Beispiel #2
0
 /**
  * @param AMQPReader $reader
  * @return array
  */
 public static function channelOpenOk(AMQPReader $reader)
 {
     $response = array();
     $response[] = $reader->read_longstr();
     return $response;
 }
 /**
  * start connection negotiation
  *
  * @param AMQPReader $args
  */
 protected function connection_start($args)
 {
     $this->version_major = $args->read_octet();
     $this->version_minor = $args->read_octet();
     $this->server_properties = $args->read_table();
     $this->mechanisms = explode(" ", $args->read_longstr());
     $this->locales = explode(" ", $args->read_longstr());
     if ($this->debug) {
         MiscHelper::debug_msg(sprintf("Start from server, version: %d.%d, properties: %s, mechanisms: %s, locales: %s", $this->version_major, $this->version_minor, self::dump_table($this->server_properties), implode(', ', $this->mechanisms), implode(', ', $this->locales)));
     }
 }
Beispiel #4
0
 /**
  * @param AMQPReader $args
  * @return array
  */
 public static function testTableOk($args)
 {
     $ret = array();
     $ret[] = $args->read_longlong();
     $ret[] = $args->read_longstr();
     return $ret;
 }
Beispiel #5
0
 /**
  * @param AMQPReader $reader
  * @return array
  */
 public static function testTableOk(AMQPReader $reader)
 {
     $response = array();
     $response[] = $reader->read_longlong();
     $response[] = $reader->read_longstr();
     return $response;
 }
Beispiel #6
0
 /**
  * @param AMQPReader $args
  * @return array
  */
 public static function channelOpenOk($args)
 {
     $ret = array();
     $ret[] = $args->read_longstr();
     return $ret;
 }