|
join 1.0
lightweight network framework library
|
SMTP protocol class (SMTP over TCP, upgradable to TLS using STARTTLS). More...
#include <smtp_protocol.hpp>
Public Types | |
| using | Transport = Tcp |
| using | Endpoint = typename Transport::Endpoint |
| using | Socket = BasicTlsWrapper<Smtp> |
| using | Stream = BasicTlsStream<Smtp> |
| using | Client = BasicSmtpClient<Smtp> |
Public Member Functions | |
| constexpr | Smtp (int family=AF_INET) noexcept |
| construct the SMTP protocol instance. | |
| constexpr int | family () const noexcept |
| get the protocol IP address family. | |
Static Public Member Functions | |
| static Smtp & | v4 () noexcept |
| get protocol suitable for IPv4 address family. | |
| static Smtp & | v6 () noexcept |
| get protocol suitable for IPv6 address family. | |
Static Public Attributes | |
| static constexpr uint16_t | defaultPort = 25 |
| default SMTP port. | |
SMTP protocol class (SMTP over TCP, upgradable to TLS using STARTTLS).
| using join::Smtp::Client = BasicSmtpClient<Smtp> |
| using join::Smtp::Endpoint = typename Transport::Endpoint |
| using join::Smtp::Socket = BasicTlsWrapper<Smtp> |
| using join::Smtp::Stream = BasicTlsStream<Smtp> |
| using join::Smtp::Transport = Tcp |
|
inlineexplicitconstexprnoexcept |
construct the SMTP protocol instance.
| family | IP address family. |
|
inlineconstexprnoexcept |
get the protocol IP address family.
|
inlinestaticnoexcept |
get protocol suitable for IPv4 address family.
|
inlinestaticnoexcept |
get protocol suitable for IPv6 address family.
|
staticconstexpr |
default SMTP port.