original_string: protected function _connect($remote)
      {
          $errorNum = 0;
          $errorStr = '';
  
          // open connection
          $this->_socket = @stream_socket_client($remote, $errorNum, $errorStr, self::TIMEOUT_CONNECTION);
  
          if ($this->_socket === false) {
              if ($errorNum == 0) {
                  $errorStr = 'Could not open socket';
              }
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception($errorStr);
          }
  
          if (($result = $this->_setStreamTimeout(self::TIMEOUT_CONNECTION)) === false) {
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception('Could not set stream timeout');
          }
  
          return $result;
      }
code: protected function _connect($remote)
      {
          $errorNum = 0;
          $errorStr = '';
  
          // open connection
          $this->_socket = @stream_socket_client($remote, $errorNum, $errorStr, self::TIMEOUT_CONNECTION);
  
          if ($this->_socket === false) {
              if ($errorNum == 0) {
                  $errorStr = 'Could not open socket';
              }
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception($errorStr);
          }
  
          if (($result = $this->_setStreamTimeout(self::TIMEOUT_CONNECTION)) === false) {
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception('Could not set stream timeout');
          }
  
          return $result;
      }
code_tokens: protected function _connect ( $ remote ) { $ errorNum = 0 ; $ errorStr = '' ; // open connection $ this -> _socket = @ stream_socket_client ( $ remote , $ errorNum , $ errorStr , self :: TIMEOUT_CONNECTION ) ; if ( $ this -> _socket === false ) { if ( $ errorNum == 0 ) { $ errorStr = 'Could not open socket' ; } /**
               * @see Zend_Mail_Protocol_Exception
               */ // require_once 'Zend/Mail/Protocol/Exception.php'; throw new Zend_Mail_Protocol_Exception ( $ errorStr ) ; } if ( ( $ result = $ this -> _setStreamTimeout ( self :: TIMEOUT_CONNECTION ) ) === false ) { /**
               * @see Zend_Mail_Protocol_Exception
               */ // require_once 'Zend/Mail/Protocol/Exception.php'; throw new Zend_Mail_Protocol_Exception ( 'Could not set stream timeout' ) ; } return $ result ; }
docstring: Connect to the server using the supplied transport and target
  
  An example $remote string may be 'tcp://mail.example.com:25' or 'ssh://hostname.com:2222'
  
  @param  string $remote Remote
  @throws Zend_Mail_Protocol_Exception
  @return boolean
docstring_tokens: Connect to the server using the supplied transport and target