public function __construct($uris = null, $async = true) { parent::__construct($uris, $async); $this->header = array('Content-type' => 'application/hprose'); $this->options = array(CURLOPT_SSL_VERIFYPEER => false, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, CURLOPT_HEADER => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_NOSIGNAL => 1); if (!$async) { $this->curl = curl_init(); } $curl_version = curl_version(); $this->curlVersionLittleThan720 = 1 == version_compare('7.20.0', $curl_version['version']); }
public function __construct($uris = null) { parent::__construct($uris); }
public function __construct($uris = null) { parent::__construct($uris); swoole_async_set(array("socket_buffer_size" => 2 * 1024 * 1024 * 1024 - 1, "socket_dontwait" => false)); }
public function __construct($url = '') { parent::__construct($url); $this->initUrl($url); $this->header = array('Content-type' => 'application/hprose'); $this->options = array(CURLOPT_SSL_VERIFYPEER => false, CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4); $this->curl = curl_init(); $this->multicurl = curl_multi_init(); $curl_version = curl_version(); $this->curl_version_lt_720 = 1 == version_compare('7.20.0', $curl_version['version']); }
public function __construct($url = '') { parent::__construct($url); $this->initUrl($url); }
public function __construct($uris = null) { parent::__construct($uris); $this->trans = new Transporter($this); }
public function __construct($uris = null, $async = true) { parent::__construct($uris, $async); $this->hdtrans = new HalfDuplexTransporter($this, $async); $this->fdtrans = new FullDuplexTransporter($this, $async); }
public function __construct($url = '') { parent::__construct($url); $this->initUrl($url); $this->header = array('Content-type' => 'application/hprose'); $this->curl = curl_init(); $this->multicurl = curl_multi_init(); $curl_version = curl_version(); $this->curl_version_lt_720 = 1 == version_compare('7.20.0', $curl_version['version']); }