Esempio n. 1
0
 function __construct($socket)
 {
     parent::__construct($socket);
     $context = new \ZMQContext();
     $this->zmq = new \ZMQSocket($context, \ZMQ::SOCKET_REQ);
     $this->zmq->connect($this->socket);
 }
Esempio n. 2
0
 function __construct($socket, $queue)
 {
     $this->queue = $queue;
     parent::__construct($socket);
     $this->amq = new \Stomp($this->socket);
     $this->queueName = '/temp-queue/' . time() . round(microtime(true) * 10000);
 }