E-MailRelay
|
A default implementation for the ServerProtocol::Text interface. More...
#include <gsmtpserverprotocol.h>
Public Member Functions | |
ServerProtocolText (const std::string &code_ident, const std::string &thishost, const GNet::Address &peer_address) | |
Constructor. More... | |
ServerProtocolText (const ServerProtocolText &)=delete | |
ServerProtocolText (ServerProtocolText &&)=delete | |
void | operator= (const ServerProtocolText &)=delete |
void | operator= (ServerProtocolText &&)=delete |
![]() | |
virtual std::string | greeting () const =0 |
Returns a system identifier for the initial greeting. More... | |
virtual std::string | hello (const std::string &smtp_peer_name) const =0 |
Returns a hello response. More... | |
virtual std::string | received (const std::string &smtp_peer_name, bool auth, bool secure, const std::string &protocol, const std::string &cipher) const =0 |
Returns a complete 'Received' line. More... | |
virtual | ~Text ()=default |
Destructor. | |
Static Public Member Functions | |
static std::string | receivedLine (const std::string &smtp_peer_name_from_helo, const std::string &peer_address, const std::string &thishost, bool authenticated, bool secure, const std::string &secure_protocol, const std::string &secure_cipher) |
Returns a standard "Received:" line. More... | |
A default implementation for the ServerProtocol::Text interface.
Definition at line 356 of file gsmtpserverprotocol.h.
GSmtp::ServerProtocolText::ServerProtocolText | ( | const std::string & | code_ident, |
const std::string & | thishost, | ||
const GNet::Address & | peer_address | ||
) |
Constructor.
Definition at line 1008 of file gsmtpserverprotocol.cpp.
|
static |
Returns a standard "Received:" line.
Definition at line 1033 of file gsmtpserverprotocol.cpp.