21#ifndef G_SMTP_SERVER_SENDER_H
22#define G_SMTP_SERVER_SENDER_H
43 virtual void protocolSend(
const std::string & s ,
bool flush ) = 0 ;
An interface used by ServerProtocol to send protocol responses.
virtual void protocolSend(const std::string &s, bool flush)=0
Called when the server protocol class wants to send data down the socket.
virtual void protocolExpect(std::size_t n)=0
Requests that the next call to ServerProtocol::apply() carries exactly 'n' bytes of binary data rathe...
virtual void protocolSecure()=0
Called when the protocol class wants a secure connection to be initiated.
virtual ~ServerSender()=default
Destructor.
virtual void protocolShutdown(int how)=0
Called on receipt of a quit command after the quit response has been sent.