based on reworked servercore.

This commit is contained in:
barant committed 2020-02-29 19:25:13 -08:00
1 parent 50eb707f10
commit db3e82a18e
1698 files changed
+41157 -797

No files matched your search

+13 -9
View File
@@ -1,17 +1,21 @@
#ifndef ____SMTP_QUIT_h__
#define ____SMTP_QUIT_h__
# define ____SMTP_QUIT_h__
#include "Command.h"
# include "SMTPCommand.h"
# include "SMTPSession.h"
namespace mail {
class __SMTP_QUIT : public core::Command {
class SMTPServer;
class __SMTP_QUIT : public SMTPCommand {
public:
int processCommand(coreutils::PString request, SMTPSession &session, SMTPServer &server, std::stringstream &data);
int processCommand(std::string request, Session *session, std::stringstream &data);
data << "221 " << getHostName() << CRLF;
session->shutdown();
}
};
}
#endif