PHPDaemon\Network\Server::__construct PHP 메소드

__construct() 공개 메소드

Constructor
public __construct ( array $config = [], boolean $init = true )
$config array Config variables
$init boolean
    public function __construct($config = [], $init = true)
    {
        parent::__construct($config, false);
        $this->bound = new \PHPDaemon\Structures\ObjectStorage();
        if (isset($this->config->listen)) {
            $this->bindSockets($this->config->listen->value);
        }
        if ($init) {
            $this->init();
        }
    }