예제 #1
0
 /**
  * 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 . '/');
 }
예제 #2
0
 /**
  * Creates a new instance
  *
  * @param  string $host
  * @param  int $port
  */
 public function __construct($host, $port)
 {
     parent::__construct(new EventServer($host, $port), 'http://' . $host . ':' . $port . '/');
 }