Ejemplo n.º 1
0
 public function __construct($host, $port, $user, $password, $vhost = "/", $insist = false, $login_method = "AMQPLAIN", $login_response = null, $locale = "en_US", $connection_timeout = 3, $read_write_timeout = 3, $context = null)
 {
     $io = new StreamIO($host, $port, $connection_timeout, $read_write_timeout, $context);
     $this->sock = $io->get_socket();
     parent::__construct($user, $password, $vhost, $insist, $login_method, $login_response, $locale, $io);
     // save the params for the use of __clone, this will overwrite the parent
     $this->construct_params = func_get_args();
 }
Ejemplo n.º 2
0
 protected function send_method_frame($method_sig, $args = "")
 {
     $this->connection->send_channel_method_frame($this->channel_id, $method_sig, $args);
 }
Ejemplo n.º 3
0
 public function __construct($host, $port, $user, $password, $vhost = "/", $insist = false, $login_method = "AMQPLAIN", $login_response = null, $locale = "en_US", $timeout = 3)
 {
     $io = new SocketIO($host, $port, $timeout);
     parent::__construct($user, $password, $vhost, $insist, $login_method, $login_response, $locale, $io);
 }