Definition at line 50 of file Abstract.php.
 
◆ __construct()
      
        
          | __construct | ( |  | $host = '127.0.0.1', | 
        
          |  |  |  | $port = null | 
        
          |  | ) |  |  | 
      
 
Constructor.
- Parameters
- 
  
    | string | $host | OPTIONAL Hostname of remote connection (default: 127.0.0.1) |  | integer | $port | OPTIONAL Port number (default: null) |  
 
- Exceptions
- 
  
  
- Returns
- void 
- See also
- Zend_Mail_Protocol_Exception
Definition at line 135 of file Abstract.php.
  140         if (!$this->_validHost->isValid($host)) {
   144             #require_once 'Zend/Mail/Protocol/Exception.php';   148         $this->_host = $host;
   149         $this->_port = $port;
 
 
 
◆ __destruct()
Class destructor to cleanup open resources
- Returns
- void 
Definition at line 158 of file Abstract.php.
 
 
◆ _addLog()
Add the transaction log
- Parameters
- 
  
  
- Returns
- void 
Definition at line 243 of file Abstract.php.
  245         if ($this->_maximumLog >= 0 && count($this->_log) >= $this->_maximumLog) {
   246             array_shift($this->_log);
 
 
 
◆ _connect()
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'
- Parameters
- 
  
  
- Exceptions
- 
  
  
- Returns
- boolean 
- See also
- Zend_Mail_Protocol_Exception
- 
Zend_Mail_Protocol_Exception
Definition at line 261 of file Abstract.php.
  267         $this->_socket = @stream_socket_client($remote, $errorNum, $errorStr, self::TIMEOUT_CONNECTION);
   269         if ($this->_socket === 
false) {
   270             if ($errorNum == 0) {
   271                 $errorStr = 
'Could not open socket';
   276             #require_once 'Zend/Mail/Protocol/Exception.php';   284             #require_once 'Zend/Mail/Protocol/Exception.php'; 
_setStreamTimeout($timeout)
 
 
◆ _disconnect()
Disconnect from remote host and free resource
- Returns
- void 
Definition at line 297 of file Abstract.php.
  300             fclose($this->_socket);
 
 
 
◆ _expect()
  
  | 
        
          | _expect | ( |  | $code, |  
          |  |  |  | $timeout = null |  
          |  | ) |  |  |  | protected | 
 
Parse server response for successful codes
Read the response from the stream and check for expected return code. Throws a Zend_Mail_Protocol_Exception if an unexpected code is returned.
- Parameters
- 
  
    | string | array | $code | One or more codes that indicate a successful response |  
 
- Exceptions
- 
  
  
- Returns
- string Last line of response string 
- See also
- Zend_Mail_Protocol_Exception
Definition at line 402 of file Abstract.php.
  404         $this->_response = array();
   410         if (!is_array(
$code)) {
   416             list($cmd, $more, $msg) = preg_split(
'/([\s-]+)/', 
$result, 2, PREG_SPLIT_DELIM_CAPTURE);
   418             if ($errMsg !== 
'') {
   419                 $errMsg .= 
' ' . $msg;
   420             } 
elseif ($cmd === 
null || !in_array($cmd, 
$code)) {
   424         } 
while (strpos($more, 
'-') === 0); 
   426         if ($errMsg !== 
'') {
   430             #require_once 'Zend/Mail/Protocol/Exception.php'; 
elseif(isset( $params[ 'redirect_parent']))
 
 
◆ _receive()
  
  | 
        
          | _receive | ( |  | $timeout = null | ) |  |  | protected | 
 
- See also
- Zend_Mail_Protocol_Exception
- 
Zend_Mail_Protocol_Exception
- 
Zend_Mail_Protocol_Exception
Definition at line 348 of file Abstract.php.
  354             #require_once 'Zend/Mail/Protocol/Exception.php';   359         if ($timeout !== 
null) {
   364         $reponse = fgets($this->_socket, 1024);
   370         $info = stream_get_meta_data($this->_socket);
   372         if (!empty(
$info[
'timed_out'])) {
   376             #require_once 'Zend/Mail/Protocol/Exception.php';   380         if ($reponse === 
false) {
   384             #require_once 'Zend/Mail/Protocol/Exception.php'; 
_setStreamTimeout($timeout)
foreach( $_productCollection as $_product)() ?>" class $info
 
 
◆ _send()
Send the given request followed by a LINEEND to the server.
- Parameters
- 
  
  
- Exceptions
- 
  
  
- Returns
- integer|boolean Number of bytes written to remote host 
- See also
- Zend_Mail_Protocol_Exception
- 
Zend_Mail_Protocol_Exception
Definition at line 312 of file Abstract.php.
  318             #require_once 'Zend/Mail/Protocol/Exception.php';   333             #require_once 'Zend/Mail/Protocol/Exception.php'; 
 
 
◆ _setStreamTimeout()
  
  | 
        
          | _setStreamTimeout | ( |  | $timeout | ) |  |  | protected | 
 
Set stream timeout
- Parameters
- 
  
  
- Returns
- boolean 
Definition at line 443 of file Abstract.php.
  445        return stream_set_timeout($this->_socket, $timeout);
  
 
◆ connect()
Create a connection to the remote host
Concrete adapters for this class will implement their own unique connect scripts, using the _connect() method to create the socket resource. 
 
 
◆ getLog()
Retrieve the transaction log
- Returns
- string 
Definition at line 221 of file Abstract.php.
  223         return implode(
'', $this->_log);
  
 
◆ getMaximumLog()
Get the maximum log size
- Returns
- int the maximum log size 
Definition at line 180 of file Abstract.php.
 
 
◆ getRequest()
Retrieve the last client request
- Returns
- string 
Definition at line 199 of file Abstract.php.
 
 
◆ getResponse()
Retrieve the last server response
- Returns
- array 
Definition at line 210 of file Abstract.php.
 
 
◆ resetLog()
Reset the transaction log
- Returns
- void 
Definition at line 232 of file Abstract.php.
  234         $this->_log = array();
  
 
◆ setMaximumLog()
      
        
          | setMaximumLog | ( |  | $maximumLog | ) |  | 
      
 
Set the maximum log size
- Parameters
- 
  
    | integer | $maximumLog | Maximum log size |  
 
- Returns
- void 
Definition at line 169 of file Abstract.php.
  171         $this->_maximumLog = (int) $maximumLog;
  
 
◆ $_host
◆ $_maximumLog
◆ $_port
◆ $_request
◆ $_response
◆ $_socket
◆ $_template
◆ $_validHost
◆ EOL
◆ TIMEOUT_CONNECTION
      
        
          | const TIMEOUT_CONNECTION = 30 | 
      
 
Default timeout in seconds for initiating session 
Definition at line 61 of file Abstract.php.
 
 
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Mail/Protocol/Abstract.php