join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
SmtpClient Class Reference

Class used to test the SMTP client. More...

Inheritance diagram for SmtpClient:
Collaboration diagram for SmtpClient:

Static Public Member Functions

static void SetUpTestCase ()
 set up test case.
 
static void TearDownTestCase ()
 tear down test case.
 

Protected Member Functions

void SetUp () override
 Sets up the test fixture.
 
void TearDown () override
 Tears down the test fixture.
 
virtual void onReceive () override
 method called when data are ready to be read on handle.
 

Static Protected Attributes

static const std::string _host = "localhost"
 host.
 
static const uint16_t _port = 5000
 port.
 
static const int _timeout = 1000
 timeout.
 
static const std::string _rootcert = "/tmp/tlssocket_test_root.cert"
 root certificate.
 
static const std::string _certPath = "/tmp/certs"
 certificate path.
 
static const std::string _certFile = _certPath + "/tlssocket_test.cert"
 certificate file.
 
static const std::string _key = "/tmp/tlssocket_test.key"
 private key.
 
static const std::string _invalidKey = "/tmp/tlssocket_test_invalid.key"
 invalid private key.
 
static const std::string _user = "admin"
 user.
 
static const std::string _password = "12345"
 password.
 

Detailed Description

Class used to test the SMTP client.

Member Function Documentation

◆ onReceive()

virtual void SmtpClient::onReceive ( )
inlineoverrideprotectedvirtual

method called when data are ready to be read on handle.

◆ SetUp()

void SmtpClient::SetUp ( )
inlineoverrideprotected

Sets up the test fixture.

◆ SetUpTestCase()

static void SmtpClient::SetUpTestCase ( )
inlinestatic

set up test case.

◆ TearDown()

void SmtpClient::TearDown ( )
inlineoverrideprotected

Tears down the test fixture.

◆ TearDownTestCase()

static void SmtpClient::TearDownTestCase ( )
inlinestatic

tear down test case.

Member Data Documentation

◆ _certFile

const std::string SmtpClient::_certFile = _certPath + "/tlssocket_test.cert"
staticprotected

certificate file.

◆ _certPath

const std::string SmtpClient::_certPath = "/tmp/certs"
staticprotected

certificate path.

◆ _host

const std::string SmtpClient::_host = "localhost"
staticprotected

host.

◆ _invalidKey

const std::string SmtpClient::_invalidKey = "/tmp/tlssocket_test_invalid.key"
staticprotected

invalid private key.

◆ _key

const std::string SmtpClient::_key = "/tmp/tlssocket_test.key"
staticprotected

private key.

◆ _password

const std::string SmtpClient::_password = "12345"
staticprotected

password.

◆ _port

const uint16_t SmtpClient::_port = 5000
staticprotected

port.

◆ _rootcert

const std::string SmtpClient::_rootcert = "/tmp/tlssocket_test_root.cert"
staticprotected

root certificate.

◆ _timeout

const int SmtpClient::_timeout = 1000
staticprotected

timeout.

◆ _user

const std::string SmtpClient::_user = "admin"
staticprotected

user.


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