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()

Member Function Documentation

◆ connect()

◆ disconnect()

void disconnect ( )
virtual

◆ 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

References vmime::dynamicCast().

◆ isConnected()

◆ isSecuredConnection()

bool isSecuredConnection ( ) const

◆ readResponse()

shared_ptr< SMTPResponse > readResponse ( )

References vmime::dynamicCast().

Referenced by SMTPConnection::connect().

◆ sendRequest()

void sendRequest ( shared_ptr< SMTPCommand cmd)

References vmime::dynamicCast().


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