Author: Vasily Zorin (maintainer@daemon.io)
Inheritance: extends PHPDaemon\Network\Server
Beispiel #1
0
 /**
  * Constructor.
  * @return void
  */
 public function init()
 {
     $this->socketurl = sprintf($this->config->mastersocket->value, crc32(Daemon::$config->pidfile->value . "" . Daemon::$config->user->value . "" . Daemon::$config->group->value));
     if (Daemon::$process instanceof Thread\IPC) {
         $this->pool = MasterPool::getInstance(['listen' => $this->socketurl]);
         $this->pool->appInstance = $this;
         $this->pool->onReady();
     }
 }