/**
  * Construct
  */
 public function __construct($host = '', $port = null)
 {
     parent::__construct($host, $port);
     // use port as queue name
     $this->mq = Pms_Adaptor::queue(array('name' => $port));
     $this->mq->addHandler(new Pms_Message_Handler());
     $this->port = $port;
 }
Exemple #2
0
 /**
  * Echo messages in server
  * 
  * @param int $mode Debug mode (int number)
  */
 public function debugMode($mode = false)
 {
     self::$debugMode = $mode;
 }