VMime
SMTPConnection Class Reference

#include <SMTPConnection.hpp>

Inheritance diagram for SMTPConnection:
Collaboration diagram for SMTPConnection:

Public Member Functions

 SMTPConnection (shared_ptr< SMTPTransport > transport, shared_ptr< security::authenticator > auth)
virtual ~SMTPConnection ()
virtual void connect ()
virtual bool isConnected () const
virtual void disconnect ()
bool isSecuredConnection () const
shared_ptr< connectionInfosgetConnectionInfos () const
virtual shared_ptr< SMTPTransportgetTransport ()
virtual shared_ptr< socketgetSocket ()
virtual shared_ptr< timeoutHandlergetTimeoutHandler ()
virtual shared_ptr< security::authenticatorgetAuthenticator ()
virtual shared_ptr< sessiongetSession ()
virtual shared_ptr< tracergetTracer ()
void sendRequest (shared_ptr< SMTPCommand > cmd)
shared_ptr< SMTPResponsereadResponse ()
bool hasExtension (const std::string &extName, std::vector< string > *params=NULL) const

Additional Inherited Members

Protected Member Functions inherited from object
 object ()
 object (const object &)
objectoperator= (const object &)
virtual ~object ()

Detailed Description

Manage connection to a SMTP server.

Constructor & Destructor Documentation

◆ SMTPConnection()

SMTPConnection ( shared_ptr< SMTPTransport > transport,
shared_ptr< security::authenticator > auth )

◆ ~SMTPConnection()

~SMTPConnection ( )
virtual

References disconnect(), and isConnected().

Member Function Documentation

◆ connect()

◆ disconnect()

void disconnect ( )
virtual

References isConnected().

Referenced by ~SMTPConnection().

◆ getAuthenticator()

shared_ptr< security::authenticator > getAuthenticator ( )
virtual

◆ getConnectionInfos()

shared_ptr< connectionInfos > getConnectionInfos ( ) const

◆ getSession()

shared_ptr< session > getSession ( )
virtual

◆ getSocket()

shared_ptr< socket > getSocket ( )
virtual

◆ getTimeoutHandler()

shared_ptr< timeoutHandler > getTimeoutHandler ( )
virtual

◆ getTracer()

shared_ptr< tracer > getTracer ( )
virtual

◆ getTransport()

shared_ptr< SMTPTransport > getTransport ( )
virtual

◆ hasExtension()

bool hasExtension ( const std::string & extName,
std::vector< string > * params = NULL ) const

◆ isConnected()

bool isConnected ( ) const
virtual

◆ isSecuredConnection()

bool isSecuredConnection ( ) const

◆ readResponse()

shared_ptr< SMTPResponse > readResponse ( )

References SMTPResponse::readResponse().

Referenced by connect().

◆ sendRequest()

void sendRequest ( shared_ptr< SMTPCommand > cmd)

The documentation for this class was generated from the following files: