More development.
This commit is contained in:
1 parent
caa8dd7d90
commit
50eb707f10
22 files changed
+302
-244
No files matched your search
+9
-15
@@ -1,23 +1,17 @@
|
||||
#ifndef ____SMTP_AUTH_h__
|
||||
#define ____SMTP_AUTH_h__
|
||||
#ifndef ____SMTP_QUIT_h__
|
||||
#define ____SMTP_QUIT_h__
|
||||
|
||||
#include "Command.h"
|
||||
|
||||
namespace http {
|
||||
namespace mail {
|
||||
|
||||
class __SMTP_AUTH : public core::Command {
|
||||
class __SMTP_QUIT : public core::Command {
|
||||
|
||||
int processCommand(std::string request, Session *session, std::stringstream &data);
|
||||
data << "221 " << getHostName() << CRLF;
|
||||
session->shutdown();
|
||||
}
|
||||
|
||||
data << "" << std::endl;
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// QUIT command request handling.
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
else if(command(input) == "QUIT") {
|
||||
cout << "221 " << getHostName() << CRLF;
|
||||
log.message("Response: 221 " + getHostName() + ".");
|
||||
state = "QUIT";
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user