Inheritance: extends Hprose\Base\Service
Esempio n. 1
0
 public function __construct($uri, $mode = SWOOLE_BASE)
 {
     parent::__construct();
     $url = $this->parseUrl($uri);
     $this->server = new swoole_http_server($url->host, $url->port, $mode, $url->type);
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->timer = new Timer();
 }