4
* This file is part of SwiftMailer.
5
* (c) 2004-2009 Chris Corbyn
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
12
* Wraps an IoBuffer to send/receive SMTP commands/responses.
14
* @subpackage Transport
15
* @author Chris Corbyn
17
interface Swift_Transport_SmtpAgent
21
* Get the IoBuffer where read/writes are occurring.
22
* @return Swift_Transport_IoBuffer
24
public function getBuffer();
27
* Run a command against the buffer, expecting the given response codes.
28
* If no response codes are given, the response will not be validated.
29
* If codes are given, an exception will be thrown on an invalid response.
30
* @param string $command
32
* @param string[] &$failures
34
public function executeCommand($command, $codes = array(), &$failures = null);