저자: Vasily Zorin (maintainer@daemon.io)
상속: extends PHPDaemon\Structures\ObjectStorage, use trait PHPDaemon\Traits\EventLoopContainer
예제 #1
0
 /**
  * Applies config
  * @return void
  */
 protected function applyConfig()
 {
     parent::applyConfig();
     foreach ($this->config as $k => $v) {
         if (is_object($v) && $v instanceof \PHPDaemon\Config\Entry\Generic) {
             $v = $v->getValue();
         }
         $k = strtolower($k);
         if ($k === 'allowedclients') {
             $this->allowedClients = $v;
         }
     }
 }
예제 #2
0
 /**
  * Detach Connection
  * @param  object $conn Connection
  * @return void
  */
 public function detach($conn)
 {
     parent::detach($conn);
     $this->touchPending($conn->getUrl());
 }
예제 #3
0
 /**
  * Finishes Generic
  * @return void
  */
 public function finish()
 {
     $this->disable();
     $this->close();
     $this->pool->detachBound($this);
 }