Hprose\Swoole\Socket\Server::__construct PHP Method

__construct() public method

public __construct ( $uri, $mode = SWOOLE_BASE )
    public function __construct($uri, $mode = SWOOLE_BASE)
    {
        parent::__construct();
        $url = $this->parseUrl($uri);
        $this->type = $url->type;
        $this->server = new swoole_server($url->host, $url->port, $mode, $url->type);
    }