/** * Creates a new instance * * @param string $host * @param int $port * @param int $children How many children to initially fork, defaults to 10 */ public function __construct($host, $port, $children = 10) { parent::__construct(new PreforkingServer($host, $port, $children), 'http://' . $host . ':' . $port . '/'); }
/** * Creates a new instance * * @param string $host * @param int $port */ public function __construct($host, $port) { parent::__construct(new EventServer($host, $port), 'http://' . $host . ':' . $port . '/'); }