__construct() public méthode

public __construct ( $uriList = null, $async = true )
Exemple #1
0
 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']);
 }
Exemple #2
0
 public function __construct($uris = null)
 {
     parent::__construct($uris);
 }
Exemple #3
0
 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']);
 }
Exemple #5
0
 public function __construct($url = '')
 {
     parent::__construct($url);
     $this->initUrl($url);
 }
Exemple #6
0
 public function __construct($uris = null)
 {
     parent::__construct($uris);
     $this->trans = new Transporter($this);
 }
Exemple #7
0
 public function __construct($uris = null, $async = true)
 {
     parent::__construct($uris, $async);
     $this->hdtrans = new HalfDuplexTransporter($this, $async);
     $this->fdtrans = new FullDuplexTransporter($this, $async);
 }
Exemple #8
0
 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']);
 }