public function connect() 
	{
		if($this->getResource()) {
			$this->close();
		}

		$resource = curl_init();

		curl_setopt($resource,CURLOPT_CONNECTTIMEOUT,$this->getTimeout());
	
		$this->setResource($resource);
		parent::connect();
		return $this;
	}
public function connect() 
	{
		if($this->getResource()) {
			$this->close();
		}

		$resource = curl_init();

		curl_setopt($resource,CURLOPT_CONNECTTIMEOUT,$this->getTimeout());
	
		$this->setResource($resource);
		parent::connect();
		return $this;
	}
public function connect ( ) { if ( $ this -> getResource ( ) ) { $ this -> close ( ) ; } $ resource = curl_init ( ) ; curl_setopt ( $ resource , CURLOPT_CONNECTTIMEOUT , $ this -> getTimeout ( ) ) ; $ this -> setResource ( $ resource ) ; parent :: connect ( ) ; return $ this ; }
Close all open connections and release all set variables
Close all open connections and release all set variables