Continued work.
This commit is contained in:
1 parent
e1f33291f7
commit
8e7834a320
17 files changed
+152
-108
No files matched your search
+9
-11
@@ -3,6 +3,7 @@
|
||||
|
||||
# include "TCPSession.h"
|
||||
# include "TCPServer.h"
|
||||
# include "MString.h"
|
||||
|
||||
# define CRLF "\r\n"
|
||||
|
||||
@@ -15,23 +16,20 @@ namespace mail {
|
||||
class SMTPSession : public core::TCPSession {
|
||||
|
||||
public:
|
||||
SMTPSession(core::EPoll &ePoll, core::TCPServer &server)
|
||||
: TCPSession(ePoll, server, "SMTP Client Session") {}
|
||||
|
||||
void onConnected() override {
|
||||
out << "220 localhost BMAMail" << CRLF;
|
||||
}
|
||||
SMTPSession(core::EPoll &ePoll, core::TCPServer &server);
|
||||
|
||||
std::string clientDomainName;
|
||||
std::string userName;
|
||||
std::string password;
|
||||
void onConnected() override;
|
||||
|
||||
coreutils::MString clientDomainName;
|
||||
coreutils::MString userName;
|
||||
coreutils::MString password;
|
||||
std::stringstream mailData;
|
||||
State state = CONNECT;
|
||||
AuthState authState = USER_UNKNOWN;
|
||||
Mode mode = WAIT_FOR_DATA;
|
||||
bool relay = false;
|
||||
std::string sender;
|
||||
std::vector<std::string> recipientList;
|
||||
coreutils::MString sender;
|
||||
std::vector<coreutils::MString> recipientList;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user